/external/llvm/tools/llvm-stub/ |
llvm-stub.c | 40 const char **Args; 44 Args = (const char**)malloc(sizeof(char*) * (argc+2)); 46 Args[0] = Interp; 61 Args[1] = strcat(strcpy((char*)malloc(strlen(argv[0])+4), argv[0]), ".bc"); 63 /* The rest of the args are as before. */ 64 memcpy((char **)Args+2, argv+1, sizeof(char*)*argc); 68 execvp(Interp, (char **)Args); /* POSIX execvp takes a char *const[]. */ 70 execvp(Interp, Args); /* windows execvp takes a const char *const *. */
|
/external/llvm/include/llvm/ADT/ |
VectorExtras.h | 29 va_list Args; 30 va_start(Args, A); 33 while (T Val = va_arg(Args, T)) 35 va_end(Args);
|
/external/clang/lib/Frontend/ |
CreateInvocationFromCommandLine.cpp | 1 //===--- CreateInvocationFromCommandLine.cpp - CompilerInvocation from Args ==// 42 llvm::SmallVector<const char *, 16> Args; 43 Args.push_back("<clang>"); // FIXME: Remove dummy argument. 44 Args.insert(Args.end(), ArgList.begin(), ArgList.end()); 48 Args.push_back("-fsyntax-only"); 57 llvm::OwningPtr<driver::Compilation> C(TheDriver.BuildCompilation(Args));
|
/external/clang/lib/FrontendTool/ |
ExecuteCompilerInvocation.cpp | 147 const char **Args = new const char*[NumArgs + 2]; 148 Args[0] = "clang (LLVM option parsing)"; 150 Args[i + 1] = Clang->getFrontendOpts().LLVMArgs[i].c_str(); 151 Args[NumArgs + 1] = 0; 152 llvm::cl::ParseCommandLineOptions(NumArgs + 1, const_cast<char **>(Args));
|
/external/clang/examples/clang-interpreter/ |
main.cpp | 64 std::vector<std::string> Args; 65 Args.push_back(Mod->getModuleIdentifier()); 67 return EE->runFunctionAsMain(EntryFn, Args, envp); 86 llvm::SmallVector<const char *, 16> Args(argv, argv + argc); 87 Args.push_back("-fsyntax-only"); 88 llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args));
|
/external/clang/tools/driver/ |
cc1_main.cpp | 62 InputArgList *Args = Opts->ParseArgs(ArgBegin, ArgEnd, 68 << Args->getArgString(MissingArgIndex) << MissingArgCount; 72 for (ArgList::const_iterator it = Args->begin(), ie = Args->end();
|
cc1as_main.cpp | 143 OwningPtr<InputArgList> Args( 149 << Args->getArgString(MissingArgIndex) << MissingArgCount; 152 for (arg_iterator it = Args->filtered_begin(cc1asoptions::OPT_UNKNOWN), 153 ie = Args->filtered_end(); it != ie; ++it) 154 Diags.Report(diag::err_drv_unknown_argument) << (*it) ->getAsString(*Args); 159 Opts.Triple = Triple::normalize(Args->getLastArgValue(OPT_triple)); 164 Opts.IncludePaths = Args->getAllArgValues(OPT_I); 165 Opts.NoInitialTextSection = Args->hasArg(OPT_n); 166 Opts.SaveTemporaryLabels = Args->hasArg(OPT_L); 169 if (Args->hasArg(OPT_INPUT)) [all...] |
driver.cpp | 84 /// \param Args - The vector of command line arguments. 88 llvm::SmallVectorImpl<const char*> &Args, 97 Args.insert(Args.begin() + 1, Str); 102 Args.push_back(Str); 109 for (unsigned i = 1, e = Args.size(); i != e; ++i) { 110 std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]); 112 if (Repl != Args[i]) { 113 OS << "### Replacing '" << Args[i] << "' with '" << Repl << "'\n"; 114 Args[i] = SaveStringInSet(SavedStrings, Repl) [all...] |
/external/llvm/tools/lli/ |
lli.cpp | 238 // using the contents of Args to determine argc & argv, and the contents of 276 std::vector<GenericValue> Args; 279 Args.push_back(ResultGV); 280 EE->runFunction(ExitF, Args);
|
/sdk/eclipse/scripts/ |
gen_icon.py | 14 class Args(object): 24 def main(args): 25 data = process_args(args) 29 def process_args(args): 30 if not args or len(args) != 6: 32 return Args(*args)
|
/dalvik/dx/src/com/android/dx/command/dump/ |
Args.java | 22 class Args {
|
/external/llvm/tools/bugpoint/ |
OptimizerDriver.cpp | 95 static cl::list<std::string> OptArgs("opt-args", cl::Positional, 159 SmallVector<const char*, 8> Args; 162 Args.push_back("valgrind"); 163 Args.push_back("--error-exitcode=1"); 164 Args.push_back("-q"); 165 Args.push_back(tool.c_str()); 167 Args.push_back(Opt.c_str()); 169 Args.push_back("-o"); 170 Args.push_back(OutputFilename.c_str()); 172 Args.push_back(OptArgs[i].c_str()) [all...] |
/external/clang/include/clang/Driver/ |
Compilation.h | 40 InputArgList *Args; 65 InputArgList *Args, DerivedArgList *TranslatedArgs); 72 const InputArgList &getInputArgs() const { return *Args; }
|
ArgList.h | 40 const ArgList &Args; 64 : Current(it), Args(_Args), Id0(_Id0), Id1(_Id1), Id2(_Id2) { 112 arglist_type Args; 126 arglist_type &getArgs() { return Args; } 127 const arglist_type &getArgs() const { return Args; } 129 unsigned size() const { return Args.size(); } 135 iterator begin() { return Args.begin(); } 136 iterator end() { return Args.end(); } 138 reverse_iterator rbegin() { return Args.rbegin(); } 139 reverse_iterator rend() { return Args.rend(); [all...] |
/external/llvm/lib/Target/ARM/ |
ARMSelectionDAGInfo.cpp | 154 TargetLowering::ArgListTy Args; 161 Args.push_back(Entry); 167 Args.push_back(Entry); 179 Args.push_back(Entry); 195 Args, DAG, dl); // arg list, DAG and debug
|
/external/llvm/lib/CodeGen/ |
StackProtector.cpp | 186 Value *Args[] = { LI, AI }; 189 Args, "", InsPt);
|
ShadowStackGC.cpp | 148 SmallVector<Value*,16> Args; 162 Args.clear(); 164 Args.append(CS.arg_begin(), CS.arg_end()); 168 Args, CI->getName(), CallBB);
|
/external/llvm/lib/Target/X86/ |
X86SelectionDAGInfo.cpp | 58 TargetLowering::ArgListTy Args; 62 Args.push_back(Entry); 64 Args.push_back(Entry); 69 DAG.getExternalSymbol(bzeroEntry, IntPtr), Args,
|
/external/clang/lib/CodeGen/ |
CGCall.h | 130 ArgInfo *Args; 144 ~CGFunctionInfo() { delete[] Args; } 146 const_arg_iterator arg_begin() const { return Args + 1; } 147 const_arg_iterator arg_end() const { return Args + 1 + NumArgs; } 148 arg_iterator arg_begin() { return Args + 1; } 149 arg_iterator arg_end() { return Args + 1 + NumArgs; } 175 CanQualType getReturnType() const { return Args[0].type; } 177 ABIArgInfo &getReturnInfo() { return Args[0].info; } 178 const ABIArgInfo &getReturnInfo() const { return Args[0].info; }
|
CGDeclCXX.cpp | 149 llvm::Value *Args[3] = { llvm::ConstantExpr::getBitCast(DtorFn, DtorFnTy), 152 Builder.CreateCall(AtExitFn, Args); 347 FunctionArgList args; local 349 args.push_back(&dst); 352 CGM.getTypes().getFunctionInfo(getContext().VoidTy, args, 358 StartFunction(GlobalDecl(), getContext().VoidTy, fn, FI, args,
|
/external/clang/lib/Driver/ |
OptTable.cpp | 187 Arg *OptTable::ParseOneArg(const ArgList &Args, unsigned &Index) const { 189 const char *Str = Args.getArgString(Index); 218 if (Arg *A = getOption(Start - OptionInfos + 1)->accept(Args, Index)) 233 InputArgList *Args = new InputArgList(ArgBegin, ArgEnd); 235 // FIXME: Handle '@' args (or at least error on them). 241 if (Args->getArgString(Index)[0] == '\0') { 247 Arg *A = ParseOneArg(*Args, Index); 259 Args->append(A); 262 return Args;
|
/external/llvm/examples/Kaleidoscope/Chapter2/ |
toy.cpp | 110 std::vector<ExprAST*> Args; 112 CallExprAST(const std::string &callee, std::vector<ExprAST*> &args) 113 : Callee(callee), Args(args) {} 121 std::vector<std::string> Args; 123 PrototypeAST(const std::string &name, const std::vector<std::string> &args) 124 : Name(name), Args(args) {} 185 std::vector<ExprAST*> Args; 190 Args.push_back(Arg) [all...] |
/external/llvm/lib/Analysis/ |
DIBuilder.cpp | 790 Value *Args[] = { MDNode::get(Storage->getContext(), Storage), VarInfo }; 791 return CallInst::Create(DeclareFn, Args, "", InsertBefore); [all...] |
/external/llvm/lib/ExecutionEngine/Interpreter/ |
ExternalFunctions.cpp | 196 std::vector<ffi_type*> args(NumArgs); 201 args[ArgNo] = ffiTypeFor(ArgTy); 220 if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, NumArgs, rtype, &args[0]) == FFI_OK) { 308 const std::vector<GenericValue> &Args) { 309 assert(Args.size() == 1); 310 TheInterpreter->addAtExitHandler((Function*)GVTOP(Args[0])); 318 const std::vector<GenericValue> &Args) { 319 TheInterpreter->exitCalled(Args[0]); 325 const std::vector<GenericValue> &Args) { 335 const std::vector<GenericValue> &Args) { [all...] |
/external/llvm/lib/Transforms/IPO/ |
LowerSetJmp.cpp | 269 Value *Args[] = { CI, Inst->getArgOperand(1) }; 270 CallInst::Create(ThrowLongJmp, Args, "", Inst); 385 Value *Args[] = { 389 CallInst::Create(AddSJToMap, Args, "", Inst);
|