Home
last modified time | relevance | path

Searched refs:getFunctionType (Results 1 – 25 of 94) sorted by relevance

1234

/minix3/minix/llvm/passes/include/magic/support/
H A DMagicMemFunction.h78 OS << function->getName() << "(" << TypeUtil::getDescription(function->getFunctionType()) << ")"; in printDescription()
81 OS << wrapper->getName() << "(" << TypeUtil::getDescription(wrapper->getFunctionType()) << ")"; in printDescription()
261 …unsigned arg_size = MagicUtil::getCalledFunctionFromCS(CS)->getFunctionType()->getNumContainedType… in replaceInstruction()
264 TYPECONST Type* wArgType = wrapper->getFunctionType()->getContainedType(i + numMagicArgs + 1); in replaceInstruction()
292 for (i = 1; i < function->getFunctionType()->getNumContainedTypes(); i++) { in getMemFunctionPointerParam()
293 type = function->getFunctionType()->getContainedType(i); in getMemFunctionPointerParam()
330 …nType *FTy = FunctionType::get(function->getFunctionType()->getReturnType(), ArgTypes, function->g… in buildWrapper()
408 …ype *FTy = FunctionType::get(stdWrapper->getFunctionType()->getReturnType(), ArgTypes, function->g… in getCustomWrapper()
506 …CalledFunction() && (callInst->getCalledFunction()->getFunctionType() == stdFunction->getFunctionT… in getCustomWrapper()
509 unsigned numStdParams = stdFunction->getFunctionType()->getNumParams(); in getCustomWrapper()
[all …]
H A DMagicMmapCtlFunction.h38 …"; OS << function->getName() << "(" << TypeUtil::getDescription(function->getFunctionType()) << ")" in printDescription()
72 …assert(function->getFunctionType()->getContainedType(this->ptrArg+1) == voidPointerType && "Invali… in MagicMmapCtlFunction()
78 …assert(isa<IntegerType>(function->getFunctionType()->getContainedType(this->lenArg+1)) && "Invalid… in MagicMmapCtlFunction()
H A DMagicDebugFunction.h49 OS << function->getName() << "(" << TypeUtil::getDescription(function->getFunctionType()) << ") ]"; in printDescription()
72 …nType *FTy = FunctionType::get(function->getFunctionType()->getReturnType(), ArgTypes, function->g… in getDebugClone()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp125 FunctionType *FT = F->getFunctionType(); in checkStringCopyLibFuncSignature()
190 FunctionType *FT = Callee->getFunctionType(); in optimizeStrCat()
242 FunctionType *FT = Callee->getFunctionType(); in optimizeStrNCat()
288 FunctionType *FT = Callee->getFunctionType(); in optimizeStrChr()
337 FunctionType *FT = Callee->getFunctionType(); in optimizeStrRChr()
372 FunctionType *FT = Callee->getFunctionType(); in optimizeStrCmp()
417 FunctionType *FT = Callee->getFunctionType(); in optimizeStrNCmp()
491 FunctionType *FT = Callee->getFunctionType(); in optimizeStpCpy()
524 FunctionType *FT = Callee->getFunctionType(); in optimizeStrNCpy()
571 FunctionType *FT = Callee->getFunctionType(); in optimizeStrLen()
[all …]
H A DValueMapper.cpp48 FunctionType *NewTy = IA->getFunctionType(); in MapValue()
52 if (NewTy != IA->getFunctionType()) in MapValue()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/Mips/
H A DMips16HardFloat.cpp107 TypeID ArgTypeID = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
118 TypeID ArgTypeID0 = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
119 TypeID ArgTypeID1 = F.getFunctionType()->getParamType(1)->getTypeID(); in whichFPParamVariantNeeded()
155 Type *ArgType = F.getFunctionType()->getParamType(0); in needsFPStubFromParams()
264 FStub = Function::Create(F.getFunctionType(), in assureFPCallStub()
451 (F->getFunctionType(), in createFPFnStub()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp194 assert(Fn.getFunctionType()->isVarArg() && "Function isn't varargs!"); in DeleteDeadVarargs()
222 FunctionType *FTy = Fn.getFunctionType(); in DeleteDeadVarargs()
334 if (Fn.hasLocalLinkage() && !Fn.getFunctionType()->isVarArg()) in RemoveDeadArgumentsFromCallers()
463 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
529 != F.getFunctionType()->getReturnType()) { in SurveyFunction()
610 if (F.getFunctionType()->isVarArg()) { in SurveyFunction()
708 FunctionType *FTy = F->getFunctionType(); in RemoveDeadStuffFromFunction()
1093 if (F.getFunctionType()->isVarArg()) in runOnModule()
H A DLoopExtractor.cpp257 assert(MF->getFunctionType() == F->getFunctionType() && "Wrong function?"); in runOnModule()
H A DMergeFunctions.cpp1010 if (int Res = cmpTypes(FnL->getFunctionType(), FnR->getFunctionType())) in compare()
1335 Function *NewG = Function::Create(G->getFunctionType(), G->getLinkage(), "", in writeThunk()
1342 FunctionType *FFTy = F->getFunctionType(); in writeThunk()
1391 Function *H = Function::Create(F->getFunctionType(), F->getLinkage(), "", in mergeTwoFunctions()
/minix3/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.cpp91 const unsigned ArgCount = F->getFunctionType()->getNumParams(); in runFunction()
H A DExternalFunctions.cpp95 FunctionType *FT = F->getFunctionType(); in lookupFunction()
186 FunctionType *FTy = F->getFunctionType(); in ffiInvoke()
260 return Fn(F->getFunctionType(), ArgVals); in callExternalFunction()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DInlineAsm.cpp46 assert(Verify(getFunctionType(), constraints) && in InlineAsm()
55 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType() function in InlineAsm
H A DFunction.cpp218 FunctionType *Function::getFunctionType() const { in getFunctionType() function in Function
223 return getFunctionType()->isVarArg(); in isVarArg()
227 return getFunctionType()->getReturnType(); in getReturnType()
281 FunctionType *FT = getFunctionType(); in BuildLazyArguments()
294 return getFunctionType()->getNumParams(); in arg_size()
297 return getFunctionType()->getNumParams() == 0; in arg_empty()
H A DMangler.cpp145 FunctionType *FT = MSFunc->getFunctionType(); in getNameWithPrefix()
H A DAutoUpgrade.cpp37 Type *Arg0Type = F->getFunctionType()->getParamType(0); in UpgradeSSE41Function()
52 Type *LastArgType = F->getFunctionType()->getParamType( in UpgradeX86IntrinsicsWith8BitMask()
53 F->getFunctionType()->getNumParams() - 1); in UpgradeX86IntrinsicsWith8BitMask()
/minix3/external/bsd/llvm/dist/llvm/tools/bugpoint/
H A DMiscompilation.cpp392 F->getFunctionType())); in ExtractLoops()
418 I->getFunctionType())); in ExtractLoops()
600 I->getFunctionType())); in ExtractBlocks()
795 Function *newMain = Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
800 Function *oldMainProto = Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
870 FunctionType *FuncTy = F->getFunctionType(); in CleanupAndPrepareModules()
897 PointerType::getUnqual(F->getFunctionType()), in CleanupAndPrepareModules()
H A DCrashDebugger.cpp213 assert(CMF->getFunctionType() == Funcs[i]->getFunctionType() && "wrong ty"); in TestFuncs()
/minix3/minix/llvm/passes/hello/
H A Dhello.cpp61 …printfFuncType = PassUtil::getFunctionType(IntegerType::get(M.getContext(), 32), functionTyArgs, t… in runOnModule()
/minix3/minix/llvm/passes/magic/
H A DMagicPass.cpp465 TYPECONST FunctionType *fType = f->getFunctionType(); in runOnModule()
531 …assert((allocTokens.size() == stdAllocFunc->getFunctionType()->getNumParams() + 1) && "Bad option … in runOnModule()
540 for (unsigned i = 0; i < stdAllocFunc->getFunctionType()->getNumParams(); i++) { in runOnModule()
546 … FunctionType *allocFuncType = getFunctionType(allocFunction->getFunctionType(), allocArgMapping); in runOnModule()
547 if(!isCompatibleMagicMemFuncType(allocFuncType, stdAllocWrapperFunc->getFunctionType())) { in runOnModule()
549 …AX_LEVEL) << " != " << TypeUtil::getDescription(stdAllocWrapperFunc->getFunctionType(), MAGIC_TYPE… in runOnModule()
625 assert(param > 0 && param <= blockAllocFunc->getFunctionType()->getNumParams() in runOnModule()
629 …FunctionType *blockAllocFuncType = getFunctionType(mempoolBlockAllocTemplate->getFunctionType(), a… in runOnModule()
630 …patibleMagicMemFuncType(blockAllocFuncType, mempoolBlockAllocTemplateWrapper->getFunctionType())) { in runOnModule()
632 …" != " << TypeUtil::getDescription(mempoolBlockAllocTemplateWrapper->getFunctionType(), MAGIC_TYPE… in runOnModule()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/AST/
H A DItaniumCXXABI.cpp67 Context.getFunctionType(Context.VoidTy, Proto->getParamTypes(), in getManglingNumber()
/minix3/external/bsd/llvm/dist/clang/lib/Sema/
H A DSemaLambda.cpp369 MethodType = Context.getFunctionType(Result, FPT->getParamTypes(), in startLambdaDefinition()
884 Context.getFunctionType(DefaultTypeForNoTrailingReturn, None, EPI); in ActOnStartOfLambdaDefinition()
1183 S.Context.getFunctionType(CallOpProto->getReturnType(), in addFunctionPointerConversion()
1195 S.Context.getFunctionType(PtrToFunctionTy, None, ConvExtInfo); in addFunctionPointerConversion()
1349 QualType FunctionTy = S.Context.getFunctionType( in addBlockPointerConversion()
1357 QualType ConvTy = S.Context.getFunctionType(BlockPtrTy, None, ExtInfo); in addBlockPointerConversion()
1479 QualType FunctionTy = Context.getFunctionType( in ActOnLambdaExpr()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DInlineAsm.h80 FunctionType *getFunctionType() const;
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp377 FunctionType *FTy = F->getFunctionType(); in getCallCost()
385 return TopTTI->getCallCost(F->getFunctionType(), NumArgs); in getCallCost()
/minix3/minix/llvm/passes/include/magic/
H A DMagicPass.h90 …FunctionType* getFunctionType(TYPECONST FunctionType *baseType, std::vector<unsigned> selectedArgs…
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DJumpInstrTables.cpp163 FunctionType *OrigFunTy = Target->getFunctionType(); in insertEntry()

1234