/external/llvm/unittests/IR/ |
VerifierTest.cpp | 27 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg=*/false); 28 OwningPtr<Function> F(Function::Create(FTy, GlobalValue::ExternalLinkage)); 67 FunctionType *FTy = FunctionType::get(Type::getInt32Ty(C), /*isVarArg=*/false); 68 Function *F = cast<Function>(M.getOrInsertFunction("foo", FTy));
|
IRBuilderTest.cpp | 29 FunctionType *FTy = FunctionType::get(Type::getVoidTy(getGlobalContext()), 31 F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
|
/external/llvm/unittests/ExecutionEngine/JIT/ |
JITMemoryManagerTest.cpp | 25 FunctionType *FTy = 27 return Function::Create(FTy, GlobalValue::ExternalLinkage);
|
JITTest.cpp | 59 FunctionType *FTy = FunctionType::get(G->getType()->getElementType(), 61 Function *F = Function::Create(FTy, GlobalValue::ExternalLinkage, Name, M);
|
/external/llvm/lib/CodeGen/ |
DwarfEHPrepare.cpp | 123 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx), 126 RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy);
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
MCJIT.cpp | 231 FunctionType *FTy = F->getFunctionType(); 232 Type *RetTy = FTy->getReturnType(); 234 assert((FTy->getNumParams() == ArgValues.size() || 235 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && 237 assert(FTy->getNumParams() == ArgValues.size() && 245 if (FTy->getParamType(0)->isIntegerTy(32) && 246 FTy->getParamType(1)->isPointerTy() && 247 FTy->getParamType(2)->isPointerTy()) { 260 if (FTy->getParamType(0)->isIntegerTy(32) & [all...] |
/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/clang/lib/CodeGen/ |
CGCXXABI.cpp | 50 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType( 52 return llvm::Constant::getNullValue(FTy->getPointerTo());
|
CGDeclCXX.cpp | 228 llvm::FunctionType *FTy, 231 llvm::Function::Create(FTy, llvm::GlobalValue::InternalLinkage, 259 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 263 CreateGlobalInitOrDestructFunction(*this, FTy, "__cxx_global_var_init"); 298 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 299 InitFn = CreateGlobalInitOrDestructFunction(*this, FTy, "__tls_init", 323 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 348 CreateGlobalInitOrDestructFunction(*this, FTy, 360 CreateGlobalInitOrDestructFunction(*this, FTy, "_GLOBAL__I_a"); 373 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false) [all...] |
CodeGenTypes.cpp | 578 const QualType FTy = cast<BlockPointerType>(Ty)->getPointeeType(); 579 llvm::Type *PointeeType = ConvertTypeForMem(FTy); 580 unsigned AS = Context.getTargetAddressSpace(FTy);
|
CGAtomic.cpp | 582 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType(FuncInfo); 583 llvm::Constant *Func = CGM.CreateRuntimeFunction(FTy, LibCallName); [all...] |
CodeGenFunction.cpp | 315 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 318 CGM.CreateRuntimeFunction(FTy, getTarget().getMCountName()); [all...] |
MicrosoftCXXABI.cpp | [all...] |
/external/llvm/lib/Analysis/ |
TargetTransformInfo.cpp | 62 unsigned TargetTransformInfo::getCallCost(FunctionType *FTy, 64 return PrevTTI->getCallCost(FTy, NumArgs); 309 unsigned getCallCost(FunctionType *FTy, int NumArgs = -1) const { 310 assert(FTy && "FunctionType must be provided to this routine."); 319 NumArgs = FTy->getNumParams(); 333 FunctionType *FTy = F->getFunctionType(); 334 SmallVector<Type *, 8> ParamTys(FTy->param_begin(), FTy->param_end()); 335 return TopTTI->getIntrinsicCost(IID, FTy->getReturnType(), ParamTys); 400 Type *FTy = CS.getCalledValue()->getType()->getPointerElementType() [all...] |
MemoryBuiltins.cpp | 126 FunctionType *FTy = Callee->getFunctionType(); 128 if (FTy->getReturnType() == Type::getInt8PtrTy(FTy->getContext()) && 129 FTy->getNumParams() == FnData->NumParams && 131 (FTy->getParamType(FstParam)->isIntegerTy(32) || 132 FTy->getParamType(FstParam)->isIntegerTy(64))) && 134 FTy->getParamType(SndParam)->isIntegerTy(32) || 135 FTy->getParamType(SndParam)->isIntegerTy(64))) 335 FunctionType *FTy = Callee->getFunctionType(); 336 if (!FTy->getReturnType()->isVoidTy() [all...] |
InstructionSimplify.cpp | [all...] |
/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 | 176 FunctionType *FTy = FunctionType::get(F->getFunctionType()->getReturnType(), 180 Function *NewF = Function::Create(FTy, F->getLinkage(), F->getName());
|
/external/llvm/lib/Transforms/IPO/ |
ArgumentPromotion.cpp | 490 FunctionType *FTy = F->getFunctionType(); 592 AttributesVec.push_back(AttributeSet::get(FTy->getContext(), 595 Type *RetTy = FTy->getReturnType(); 598 FunctionType *NFTy = FunctionType::get(RetTy, Params, FTy->isVarArg()); [all...] |
FunctionAttrs.cpp | 816 FunctionType *FTy = F.getFunctionType(); 823 if (FTy->getNumParams() != 1 || !FTy->getParamType(0)->isPointerTy()) 831 if (FTy->getNumParams() != 2 || 832 !FTy->getParamType(0)->isPointerTy() || 833 !FTy->getParamType(1)->isIntegerTy()) 845 if (FTy->getNumParams() < 2 || 846 !FTy->getParamType(1)->isPointerTy()) 858 if (FTy->getNumParams() < 2 || 859 !FTy->getParamType(1)->isPointerTy() [all...] |
DeadArgumentElimination.cpp | 251 FunctionType *FTy = Fn.getFunctionType(); 253 std::vector<Type*> Params(FTy->param_begin(), FTy->param_end()); 254 FunctionType *NFTy = FunctionType::get(FTy->getReturnType(), 716 FunctionType *FTy = F->getFunctionType(); 727 SmallVector<bool, 10> ArgAlive(FTy->getNumParams(), false); 756 Type *RetTy = FTy->getReturnType(); [all...] |
MergeFunctions.cpp | 88 FunctionType *FTy = F->getFunctionType(); 94 ID.AddBoolean(FTy->isVarArg()); 95 ID.AddInteger(getTypeIDForHash(FTy->getReturnType())); 96 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i) 97 ID.AddInteger(getTypeIDForHash(FTy->getParamType(i)));
|
/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/ExecutionEngine/ |
ExecutionEngine.cpp | 363 FunctionType *FTy = Fn->getFunctionType(); 369 if (NumArgs >= 3 && FTy->getParamType(2) != PPInt8Ty) 371 if (NumArgs >= 2 && FTy->getParamType(1) != PPInt8Ty) 373 if (NumArgs >= 1 && !FTy->getParamType(0)->isIntegerTy(32)) 375 if (!FTy->getReturnType()->isIntegerTy() && 376 !FTy->getReturnType()->isVoidTy()) [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineCalls.cpp | [all...] |