/external/llvm/unittests/VMCore/ |
VerifierTest.cpp | 27 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg=*/false); 28 OwningPtr<Function> F(Function::Create(FTy, GlobalValue::ExternalLinkage));
|
IRBuilderTest.cpp | 29 FunctionType *FTy = FunctionType::get(Type::getVoidTy(getGlobalContext()), 31 F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
MCJIT.cpp | 158 FunctionType *FTy = F->getFunctionType(); 159 Type *RetTy = FTy->getReturnType(); 161 assert((FTy->getNumParams() == ArgValues.size() || 162 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && 164 assert(FTy->getNumParams() == ArgValues.size() && 172 if (FTy->getParamType(0)->isIntegerTy(32) && 173 FTy->getParamType(1)->isPointerTy() && 174 FTy->getParamType(2)->isPointerTy()) { 187 if (FTy->getParamType(0)->isIntegerTy(32) & [all...] |
/external/llvm/unittests/ExecutionEngine/JIT/ |
JITMemoryManagerTest.cpp | 25 FunctionType *FTy = 27 return Function::Create(FTy, GlobalValue::ExternalLinkage);
|
JITTest.cpp | 41 FunctionType *FTy = FunctionType::get(G->getType()->getElementType(), 43 Function *F = Function::Create(FTy, GlobalValue::ExternalLinkage, Name, M);
|
/external/clang/lib/CodeGen/ |
CGCXXABI.cpp | 52 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType( 54 return llvm::Constant::getNullValue(FTy->getPointerTo());
|
CGDeclCXX.cpp | 216 llvm::FunctionType *FTy, 219 llvm::Function::Create(FTy, llvm::GlobalValue::InternalLinkage, 241 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 245 CreateGlobalInitOrDestructFunction(*this, FTy, "__cxx_global_var_init"); 277 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 281 CreateGlobalInitOrDestructFunction(*this, FTy, "_GLOBAL__I_a"); 309 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 313 CreateGlobalInitOrDestructFunction(*this, FTy, "_GLOBAL__D_a"); 404 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType(FI); 406 CreateGlobalInitOrDestructFunction(CGM, FTy, "__cxx_global_array_dtor") [all...] |
CodeGenTypes.cpp | 545 const QualType FTy = cast<BlockPointerType>(Ty)->getPointeeType(); 546 llvm::Type *PointeeType = ConvertTypeForMem(FTy); 547 unsigned AS = Context.getTargetAddressSpace(FTy);
|
CGStmt.cpp | [all...] |
CodeGenFunction.cpp | 248 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 250 llvm::Constant *MCountFn = CGM.CreateRuntimeFunction(FTy, [all...] |
ItaniumCXXABI.cpp | 220 llvm::FunctionType *FTy = 274 VTable = Builder.CreateBitCast(VTable, FTy->getPointerTo()->getPointerTo()); 282 Builder.CreateIntToPtr(FnAsInt, FTy->getPointerTo(), "memptr.nonvirtualfn"); 286 llvm::PHINode *Callee = Builder.CreatePHI(FTy->getPointerTo(), 2); [all...] |
/external/llvm/lib/CodeGen/ |
DwarfEHPrepare.cpp | 127 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx), 130 RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy);
|
/external/llvm/unittests/Analysis/ |
ScalarEvolutionTest.cpp | 40 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Context), 42 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); 94 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Context), Types, false); 95 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy));
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
ExternalFunctions.cpp | 185 FunctionType *FTy = F->getFunctionType(); 201 Type *ArgTy = FTy->getParamType(ArgNo); 213 Type *ArgTy = FTy->getParamType(ArgNo); 218 Type *RetTy = FTy->getReturnType();
|
/external/llvm/lib/Transforms/Utils/ |
CloneFunction.cpp | 173 FunctionType *FTy = FunctionType::get(F->getFunctionType()->getReturnType(), 177 Function *NewF = Function::Create(FTy, F->getLinkage(), F->getName());
|
/external/llvm/lib/Analysis/ |
MemoryBuiltins.cpp | 119 FunctionType *FTy = Callee->getFunctionType(); 121 if (FTy->getReturnType() == Type::getInt8PtrTy(FTy->getContext()) && 122 FTy->getNumParams() == FnData->NumParams && 124 (FTy->getParamType(FstParam)->isIntegerTy(32) || 125 FTy->getParamType(FstParam)->isIntegerTy(64))) && 127 FTy->getParamType(SndParam)->isIntegerTy(32) || 128 FTy->getParamType(SndParam)->isIntegerTy(64))) 322 FunctionType *FTy = Callee->getFunctionType(); 323 if (!FTy->getReturnType()->isVoidTy() [all...] |
/external/llvm/lib/Transforms/IPO/ |
ArgumentPromotion.cpp | 494 FunctionType *FTy = F->getFunctionType(); 593 Type *RetTy = FTy->getReturnType(); 598 if (Params.empty() && FTy->isVarArg()) { 604 FunctionType *NFTy = FunctionType::get(RetTy, Params, FTy->isVarArg()); [all...] |
DeadArgumentElimination.cpp | 209 FunctionType *FTy = Fn.getFunctionType(); 211 std::vector<Type*> Params(FTy->param_begin(), FTy->param_end()); 212 FunctionType *NFTy = FunctionType::get(FTy->getReturnType(), 649 FunctionType *FTy = F->getFunctionType(); 662 Type *RetTy = FTy->getReturnType(); 729 SmallVector<bool, 10> ArgAlive(FTy->getNumParams(), false); 759 FunctionType *NFTy = FunctionType::get(NRetTy, Params, FTy->isVarArg()); 762 if (NFTy == FTy) 799 for (unsigned e = FTy->getNumParams(); i != e; ++I, ++i [all...] |
MergeFunctions.cpp | 79 FunctionType *FTy = F->getFunctionType(); 85 ID.AddBoolean(FTy->isVarArg()); 86 ID.AddInteger(FTy->getReturnType()->getTypeID()); 87 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i) 88 ID.AddInteger(FTy->getParamType(i)->getTypeID());
|
/external/llvm/lib/ExecutionEngine/ |
ExecutionEngine.cpp | 362 FunctionType *FTy = Fn->getFunctionType(); 368 if (NumArgs >= 3 && FTy->getParamType(2) != PPInt8Ty) 370 if (NumArgs >= 2 && FTy->getParamType(1) != PPInt8Ty) 372 if (NumArgs >= 1 && !FTy->getParamType(0)->isIntegerTy(32)) 374 if (!FTy->getReturnType()->isIntegerTy() && 375 !FTy->getReturnType()->isVoidTy()) [all...] |
/external/llvm/lib/ExecutionEngine/JIT/ |
JIT.cpp | 395 FunctionType *FTy = F->getFunctionType(); 396 Type *RetTy = FTy->getReturnType(); 398 assert((FTy->getNumParams() == ArgValues.size() || 399 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && 401 assert(FTy->getNumParams() == ArgValues.size() && 409 if (FTy->getParamType(0)->isIntegerTy(32) && 410 FTy->getParamType(1)->isPointerTy() && 411 FTy->getParamType(2)->isPointerTy()) { 424 if (FTy->getParamType(0)->isIntegerTy(32) & [all...] |
/external/llvm/lib/Bitcode/Writer/ |
BitcodeWriter.cpp | [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCalls.cpp | [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
GCOVProfiling.cpp | 578 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), 580 return M->getOrInsertFunction("llvm_gcda_start_file", FTy); 590 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); 591 return M->getOrInsertFunction("__llvm_gcov_indirect_counter_increment", FTy); 599 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); 600 return M->getOrInsertFunction("llvm_gcda_emit_function", FTy); 608 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), 610 return M->getOrInsertFunction("llvm_gcda_emit_arcs", FTy); 614 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); 615 return M->getOrInsertFunction("llvm_gcda_end_file", FTy); [all...] |
/external/llvm/lib/VMCore/ |
AsmWriter.cpp | 211 FunctionType *FTy = cast<FunctionType>(Ty); 212 print(FTy->getReturnType(), OS); 214 for (FunctionType::param_iterator I = FTy->param_begin(), 215 E = FTy->param_end(); I != E; ++I) { 216 if (I != FTy->param_begin()) 220 if (FTy->isVarArg()) { 221 if (FTy->getNumParams()) OS << ", "; [all...] |