Home
last modified time | relevance | path

Searched refs:FTy (Results 1 – 25 of 51) sorted by relevance

123

/external/llvm/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp1845 FunctionType *FTy = F.getFunctionType(); in inferPrototypeAttributes() local
1851 if (FTy->getNumParams() != 1 || !FTy->getParamType(0)->isPointerTy()) in inferPrototypeAttributes()
1858 if (FTy->getNumParams() != 2 || in inferPrototypeAttributes()
1859 !FTy->getParamType(0)->isPointerTy() || in inferPrototypeAttributes()
1860 !FTy->getParamType(1)->isIntegerTy()) in inferPrototypeAttributes()
1877 if (FTy->getNumParams() < 2 || in inferPrototypeAttributes()
1878 !FTy->getParamType(1)->isPointerTy()) in inferPrototypeAttributes()
1883 if (FTy->getNumParams() != 3 || in inferPrototypeAttributes()
1884 !FTy->getParamType(0)->isPointerTy() || in inferPrototypeAttributes()
1885 !FTy->getParamType(1)->isPointerTy()) in inferPrototypeAttributes()
[all …]
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp158 FunctionType *FTy = F->getFunctionType(); in runFunction() local
159 Type *RetTy = FTy->getReturnType(); in runFunction()
161 assert((FTy->getNumParams() == ArgValues.size() || in runFunction()
162 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && in runFunction()
164 assert(FTy->getNumParams() == ArgValues.size() && in runFunction()
172 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
173 FTy->getParamType(1)->isPointerTy() && in runFunction()
174 FTy->getParamType(2)->isPointerTy()) { in runFunction()
187 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
188 FTy->getParamType(1)->isPointerTy()) { in runFunction()
[all …]
/external/llvm/lib/ExecutionEngine/JIT/
DJIT.cpp395 FunctionType *FTy = F->getFunctionType(); in runFunction() local
396 Type *RetTy = FTy->getReturnType(); in runFunction()
398 assert((FTy->getNumParams() == ArgValues.size() || in runFunction()
399 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && in runFunction()
401 assert(FTy->getNumParams() == ArgValues.size() && in runFunction()
409 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
410 FTy->getParamType(1)->isPointerTy() && in runFunction()
411 FTy->getParamType(2)->isPointerTy()) { in runFunction()
424 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
425 FTy->getParamType(1)->isPointerTy()) { in runFunction()
[all …]
/external/clang/lib/CodeGen/
DCGDeclCXX.cpp216 llvm::FunctionType *FTy, in CreateGlobalInitOrDestructFunction() argument
219 llvm::Function::Create(FTy, llvm::GlobalValue::InternalLinkage, in CreateGlobalInitOrDestructFunction()
241 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalVarDeclInitFunc() local
245 CreateGlobalInitOrDestructFunction(*this, FTy, "__cxx_global_var_init"); in EmitCXXGlobalVarDeclInitFunc()
277 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalInitFunc() local
281 CreateGlobalInitOrDestructFunction(*this, FTy, "_GLOBAL__I_a"); in EmitCXXGlobalInitFunc()
309 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalDtorFunc() local
313 CreateGlobalInitOrDestructFunction(*this, FTy, "_GLOBAL__D_a"); in EmitCXXGlobalDtorFunc()
404 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType(FI); in generateDestroyHelper() local
406 CreateGlobalInitOrDestructFunction(CGM, FTy, "__cxx_global_array_dtor"); in generateDestroyHelper()
DCGException.cpp28 llvm::FunctionType *FTy = in getAllocateExceptionFn() local
31 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_allocate_exception"); in getAllocateExceptionFn()
37 llvm::FunctionType *FTy = in getFreeExceptionFn() local
40 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_free_exception"); in getFreeExceptionFn()
48 llvm::FunctionType *FTy = in getThrowFn() local
51 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_throw"); in getThrowFn()
57 llvm::FunctionType *FTy = in getReThrowFn() local
60 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_rethrow"); in getReThrowFn()
66 llvm::FunctionType *FTy = in getGetExceptionPtrFn() local
69 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_get_exception_ptr"); in getGetExceptionPtrFn()
[all …]
DItaniumCXXABI.cpp220 llvm::FunctionType *FTy = in EmitLoadOfMemberFunctionPointer() local
274 VTable = Builder.CreateBitCast(VTable, FTy->getPointerTo()->getPointerTo()); in EmitLoadOfMemberFunctionPointer()
282 Builder.CreateIntToPtr(FnAsInt, FTy->getPointerTo(), "memptr.nonvirtualfn"); in EmitLoadOfMemberFunctionPointer()
286 llvm::PHINode *Callee = Builder.CreatePHI(FTy->getPointerTo(), 2); in EmitLoadOfMemberFunctionPointer()
927 llvm::FunctionType *FTy = in getGuardAcquireFn() local
931 return CGM.CreateRuntimeFunction(FTy, "__cxa_guard_acquire", in getGuardAcquireFn()
938 llvm::FunctionType *FTy = in getGuardReleaseFn() local
941 return CGM.CreateRuntimeFunction(FTy, "__cxa_guard_release", in getGuardReleaseFn()
948 llvm::FunctionType *FTy = in getGuardAbortFn() local
951 return CGM.CreateRuntimeFunction(FTy, "__cxa_guard_abort", in getGuardAbortFn()
DCGObjCMac.cpp243 llvm::FunctionType *FTy = in getGetPropertyFn() local
247 return CGM.CreateRuntimeFunction(FTy, "objc_getProperty"); in getGetPropertyFn()
263 llvm::FunctionType *FTy = in getSetPropertyFn() local
267 return CGM.CreateRuntimeFunction(FTy, "objc_setProperty"); in getSetPropertyFn()
289 llvm::FunctionType *FTy = in getOptimizedSetPropertyFn() local
303 return CGM.CreateRuntimeFunction(FTy, name); in getOptimizedSetPropertyFn()
316 llvm::FunctionType *FTy = in getCopyStructFn() local
320 return CGM.CreateRuntimeFunction(FTy, "objc_copyStruct"); in getCopyStructFn()
335 llvm::FunctionType *FTy = in getCppAtomicObjectFunction() local
339 return CGM.CreateRuntimeFunction(FTy, "objc_copyCppObjectAtomic"); in getCppAtomicObjectFunction()
[all …]
DCGCXXABI.cpp52 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType( in EmitLoadOfMemberFunctionPointer() local
54 return llvm::Constant::getNullValue(FTy->getPointerTo()); in EmitLoadOfMemberFunctionPointer()
DCodeGenTypes.cpp545 const QualType FTy = cast<BlockPointerType>(Ty)->getPointeeType(); in ConvertType() local
546 llvm::Type *PointeeType = ConvertTypeForMem(FTy); in ConvertType()
547 unsigned AS = Context.getTargetAddressSpace(FTy); in ConvertType()
/external/llvm/lib/Transforms/Instrumentation/
DGCOVProfiling.cpp578 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), in getStartFileFunc() local
580 return M->getOrInsertFunction("llvm_gcda_start_file", FTy); in getStartFileFunc()
590 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getIncrementIndirectCounterFunc() local
591 return M->getOrInsertFunction("__llvm_gcov_indirect_counter_increment", FTy); in getIncrementIndirectCounterFunc()
599 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getEmitFunctionFunc() local
600 return M->getOrInsertFunction("llvm_gcda_emit_function", FTy); in getEmitFunctionFunc()
608 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), in getEmitArcsFunc() local
610 return M->getOrInsertFunction("llvm_gcda_emit_arcs", FTy); in getEmitArcsFunc()
614 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in getEndFileFunc() local
615 return M->getOrInsertFunction("llvm_gcda_end_file", FTy); in getEndFileFunc()
[all …]
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp119 FunctionType *FTy = Callee->getFunctionType(); in getAllocationData() local
121 if (FTy->getReturnType() == Type::getInt8PtrTy(FTy->getContext()) && in getAllocationData()
122 FTy->getNumParams() == FnData->NumParams && in getAllocationData()
124 (FTy->getParamType(FstParam)->isIntegerTy(32) || in getAllocationData()
125 FTy->getParamType(FstParam)->isIntegerTy(64))) && in getAllocationData()
127 FTy->getParamType(SndParam)->isIntegerTy(32) || in getAllocationData()
128 FTy->getParamType(SndParam)->isIntegerTy(64))) in getAllocationData()
322 FunctionType *FTy = Callee->getFunctionType(); in isFreeCall() local
323 if (!FTy->getReturnType()->isVoidTy()) in isFreeCall()
325 if (FTy->getNumParams() != 1) in isFreeCall()
[all …]
/external/llvm/unittests/VMCore/
DVerifierTest.cpp27 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg=*/false); in TEST() local
28 OwningPtr<Function> F(Function::Create(FTy, GlobalValue::ExternalLinkage)); in TEST()
DIRBuilderTest.cpp29 FunctionType *FTy = FunctionType::get(Type::getVoidTy(getGlobalContext()), in SetUp() local
31 F = Function::Create(FTy, Function::ExternalLinkage, "", M.get()); in SetUp()
/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp209 FunctionType *FTy = Fn.getFunctionType(); in DeleteDeadVarargs() local
211 std::vector<Type*> Params(FTy->param_begin(), FTy->param_end()); in DeleteDeadVarargs()
212 FunctionType *NFTy = FunctionType::get(FTy->getReturnType(), in DeleteDeadVarargs()
649 FunctionType *FTy = F->getFunctionType(); in RemoveDeadStuffFromFunction() local
662 Type *RetTy = FTy->getReturnType(); in RemoveDeadStuffFromFunction()
729 SmallVector<bool, 10> ArgAlive(FTy->getNumParams(), false); in RemoveDeadStuffFromFunction()
759 FunctionType *NFTy = FunctionType::get(NRetTy, Params, FTy->isVarArg()); in RemoveDeadStuffFromFunction()
762 if (NFTy == FTy) in RemoveDeadStuffFromFunction()
799 for (unsigned e = FTy->getNumParams(); i != e; ++I, ++i) in RemoveDeadStuffFromFunction()
DMergeFunctions.cpp79 FunctionType *FTy = F->getFunctionType(); in profileFunction() local
85 ID.AddBoolean(FTy->isVarArg()); in profileFunction()
86 ID.AddInteger(FTy->getReturnType()->getTypeID()); in profileFunction()
87 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i) in profileFunction()
88 ID.AddInteger(FTy->getParamType(i)->getTypeID()); in profileFunction()
DArgumentPromotion.cpp494 FunctionType *FTy = F->getFunctionType(); in DoPromotion() local
593 Type *RetTy = FTy->getReturnType(); in DoPromotion()
598 if (Params.empty() && FTy->isVarArg()) { in DoPromotion()
604 FunctionType *NFTy = FunctionType::get(RetTy, Params, FTy->isVarArg()); in DoPromotion()
/external/llvm/lib/CodeGen/
DDwarfEHPrepare.cpp127 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx), in InsertUnwindResumeCalls() local
130 RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy); in InsertUnwindResumeCalls()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp185 FunctionType *FTy = F->getFunctionType(); in ffiInvoke() local
201 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
213 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
218 Type *RetTy = FTy->getReturnType(); in ffiInvoke()
/external/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp40 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Context), in TEST_F() local
42 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
94 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Context), Types, false); in TEST_F() local
95 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); in TEST_F()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp943 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in visitCallSite() local
944 if (FTy->isVarArg()) { in visitCallSite()
945 int ix = FTy->getNumParams(); in visitCallSite()
948 for (CallSite::arg_iterator I = CS.arg_begin()+FTy->getNumParams(), in visitCallSite()
1238 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in transformCallThroughTrampoline() local
1319 NewTypes.reserve(FTy->getNumParams()+1); in transformCallThroughTrampoline()
1325 FunctionType::param_iterator I = FTy->param_begin(), in transformCallThroughTrampoline()
1326 E = FTy->param_end(); in transformCallThroughTrampoline()
1345 FunctionType *NewFTy = FunctionType::get(FTy->getReturnType(), NewTypes, in transformCallThroughTrampoline()
1346 FTy->isVarArg()); in transformCallThroughTrampoline()
/external/llvm/lib/VMCore/
DAsmWriter.cpp211 FunctionType *FTy = cast<FunctionType>(Ty); in print() local
212 print(FTy->getReturnType(), OS); in print()
214 for (FunctionType::param_iterator I = FTy->param_begin(), in print()
215 E = FTy->param_end(); I != E; ++I) { in print()
216 if (I != FTy->param_begin()) in print()
220 if (FTy->isVarArg()) { in print()
221 if (FTy->getNumParams()) OS << ", "; in print()
1852 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in printInstruction() local
1853 Type *RetTy = FTy->getReturnType(); in printInstruction()
1864 if (!FTy->isVarArg() && in printInstruction()
[all …]
DVerifier.cpp1142 FunctionType *FTy = cast<FunctionType>(FPTy->getElementType()); in VerifyCallSite() local
1145 if (FTy->isVarArg()) in VerifyCallSite()
1146 Assert1(CS.arg_size() >= FTy->getNumParams(), in VerifyCallSite()
1149 Assert1(CS.arg_size() == FTy->getNumParams(), in VerifyCallSite()
1153 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i) in VerifyCallSite()
1154 Assert3(CS.getArgument(i)->getType() == FTy->getParamType(i), in VerifyCallSite()
1156 CS.getArgument(i), FTy->getParamType(i), I); in VerifyCallSite()
1164 VerifyFunctionAttrs(FTy, Attrs, I); in VerifyCallSite()
1166 if (FTy->isVarArg()) in VerifyCallSite()
1168 for (unsigned Idx = 1 + FTy->getNumParams(); Idx <= CS.arg_size(); ++Idx) { in VerifyCallSite()
[all …]
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1619 FunctionType *FTy = in ParseModule() local
1621 if (!FTy) in ParseModule()
1624 Function *Func = Function::Create(FTy, GlobalValue::ExternalLinkage, in ParseModule()
2374 FunctionType *FTy = !CalleeTy ? 0 : in ParseFunctionBody() local
2378 if (FTy == 0 || NormalBB == 0 || UnwindBB == 0 || in ParseFunctionBody()
2379 Record.size() < OpNum+FTy->getNumParams()) in ParseFunctionBody()
2383 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i, ++OpNum) { in ParseFunctionBody()
2384 Ops.push_back(getFnValueByID(Record[OpNum], FTy->getParamType(i))); in ParseFunctionBody()
2388 if (!FTy->isVarArg()) { in ParseFunctionBody()
2629 FunctionType *FTy = 0; in ParseFunctionBody() local
[all …]
/external/llvm/unittests/ExecutionEngine/JIT/
DJITMemoryManagerTest.cpp25 FunctionType *FTy = in makeFakeFunction() local
27 return Function::Create(FTy, GlobalValue::ExternalLinkage); in makeFakeFunction()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp362 FunctionType *FTy = Fn->getFunctionType(); in runFunctionAsMain() local
368 if (NumArgs >= 3 && FTy->getParamType(2) != PPInt8Ty) in runFunctionAsMain()
370 if (NumArgs >= 2 && FTy->getParamType(1) != PPInt8Ty) in runFunctionAsMain()
372 if (NumArgs >= 1 && !FTy->getParamType(0)->isIntegerTy(32)) in runFunctionAsMain()
374 if (!FTy->getReturnType()->isIntegerTy() && in runFunctionAsMain()
375 !FTy->getReturnType()->isVoidTy()) in runFunctionAsMain()

123