Home
last modified time | relevance | path

Searched refs:FT (Results 1 – 25 of 98) sorted by relevance

1234

/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp125 FunctionType *FT = F->getFunctionType(); in checkStringCopyLibFuncSignature() local
129 unsigned NumParams = FT->getNumParams(); in checkStringCopyLibFuncSignature()
132 if (FT->getReturnType() != FT->getParamType(0)) in checkStringCopyLibFuncSignature()
143 if (NumParams != 3 || FT->getParamType(0) != FT->getParamType(1) || in checkStringCopyLibFuncSignature()
144 FT->getParamType(0) != PCharTy || !FT->getParamType(2)->isIntegerTy()) in checkStringCopyLibFuncSignature()
153 if (NumParams != 2 || FT->getParamType(0) != FT->getParamType(1) || in checkStringCopyLibFuncSignature()
154 FT->getParamType(0) != PCharTy) in checkStringCopyLibFuncSignature()
163 if (NumParams != 3 || !FT->getParamType(0)->isPointerTy() || in checkStringCopyLibFuncSignature()
164 !FT->getParamType(1)->isPointerTy() || FT->getParamType(2) != SizeTTy) in checkStringCopyLibFuncSignature()
171 if (NumParams != 3 || !FT->getParamType(0)->isPointerTy() || in checkStringCopyLibFuncSignature()
[all …]
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp95 FunctionType *FT = F->getFunctionType(); in lookupFunction() local
96 for (unsigned i = 0, e = FT->getNumContainedTypes(); i != e; ++i) in lookupFunction()
97 ExtName += getTypeID(FT->getContainedType(i)); in lookupFunction()
302 GenericValue lle_X_atexit(FunctionType *FT, in lle_X_atexit() argument
313 GenericValue lle_X_exit(FunctionType *FT, in lle_X_exit() argument
321 GenericValue lle_X_abort(FunctionType *FT, in lle_X_abort() argument
332 GenericValue lle_X_sprintf(FunctionType *FT, in lle_X_sprintf() argument
415 GenericValue lle_X_printf(FunctionType *FT, in lle_X_printf() argument
421 GenericValue GV = lle_X_sprintf(FT, NewArgs); in lle_X_printf()
428 GenericValue lle_X_sscanf(FunctionType *FT, in lle_X_sscanf() argument
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp265 Constant *getOrBuildTrampolineFunction(FunctionType *FT, StringRef FName);
399 FunctionType *FT; in getCustomFunctionType() local
400 if (isa<PointerType>(*i) && (FT = dyn_cast<FunctionType>(cast<PointerType>( in getCustomFunctionType()
402 ArgTypes.push_back(getTrampolineFunctionType(FT)->getPointerTo()); in getCustomFunctionType()
524 FunctionType *FT = F->getFunctionType(); in buildWrapperFunction() local
545 unsigned n = FT->getNumParams(); in buildWrapperFunction()
549 if (FT->getReturnType()->isVoidTy()) in buildWrapperFunction()
558 Constant *DataFlowSanitizer::getOrBuildTrampolineFunction(FunctionType *FT, in getOrBuildTrampolineFunction() argument
560 FunctionType *FTT = getTrampolineFunctionType(FT); in getOrBuildTrampolineFunction()
568 for (unsigned N = FT->getNumParams(); N != 0; ++AI, --N) in getOrBuildTrampolineFunction()
[all …]
/external/clang/lib/AST/
DDeclPrinter.cpp434 const FunctionProtoType *FT = nullptr; in VisitFunctionDecl() local
436 FT = dyn_cast<FunctionProtoType>(AFT); in VisitFunctionDecl()
439 if (FT) { in VisitFunctionDecl()
447 if (FT->isVariadic()) { in VisitFunctionDecl()
461 if (FT) { in VisitFunctionDecl()
462 if (FT->isConst()) in VisitFunctionDecl()
464 if (FT->isVolatile()) in VisitFunctionDecl()
466 if (FT->isRestrict()) in VisitFunctionDecl()
469 switch (FT->getRefQualifier()) { in VisitFunctionDecl()
481 if (FT && FT->hasDynamicExceptionSpec()) { in VisitFunctionDecl()
[all …]
DMangle.cpp83 const FunctionType *FT = T->castAs<FunctionType>(); in getCallingConvMangling() local
85 CallingConv CC = FT->getCallConv(); in getCallingConvMangling()
164 const FunctionType *FT = FD->getType()->castAs<FunctionType>(); in mangleName() local
165 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FT); in mangleName()
/external/llvm/lib/IR/
DMangler.cpp145 FunctionType *FT = MSFunc->getFunctionType(); in getNameWithPrefix() local
148 (!FT->isVarArg() || FT->getNumParams() == 0 || in getNameWithPrefix()
149 (FT->getNumParams() == 1 && MSFunc->hasStructRetAttr()))) in getNameWithPrefix()
DFunction.cpp280 FunctionType *FT = getFunctionType(); in BuildLazyArguments() local
281 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { in BuildLazyArguments()
282 assert(!FT->getParamType(i)->isVoidTy() && in BuildLazyArguments()
284 ArgumentList.push_back(new Argument(FT->getParamType(i))); in BuildLazyArguments()
486 } else if (FunctionType* FT = dyn_cast<FunctionType>(Ty)) { in getMangledTypeStr() local
487 Result += "f_" + getMangledTypeStr(FT->getReturnType()); in getMangledTypeStr()
488 for (size_t i = 0; i < FT->getNumParams(); i++) in getMangledTypeStr()
489 Result += getMangledTypeStr(FT->getParamType(i)); in getMangledTypeStr()
490 if (FT->isVarArg()) in getMangledTypeStr()
DType.cpp364 FunctionType *FT; in get() local
367 FT = (FunctionType*) pImpl->TypeAllocator. in get()
370 new (FT) FunctionType(ReturnType, Params, isVarArg); in get()
371 pImpl->FunctionTypes.insert(FT); in get()
373 FT = *I; in get()
376 return FT; in get()
DVerifier.cpp401 void VerifyFunctionAttrs(FunctionType *FT, AttributeSet Attrs,
943 auto *FT = F ? dyn_cast<PointerType>(F->getType()) : nullptr; in visitMDSubprogram() local
944 Assert(F && FT && isa<FunctionType>(FT->getElementType()), in visitMDSubprogram()
945 "invalid function", &N, F, FT); in visitMDSubprogram()
1375 void Verifier::VerifyFunctionAttrs(FunctionType *FT, AttributeSet Attrs, in VerifyFunctionAttrs() argument
1389 Ty = FT->getReturnType(); in VerifyFunctionAttrs()
1390 else if (Idx-1 < FT->getNumParams()) in VerifyFunctionAttrs()
1391 Ty = FT->getParamType(Idx-1); in VerifyFunctionAttrs()
1408 Assert(Ty->canLosslesslyBitCastTo(FT->getReturnType()), in VerifyFunctionAttrs()
1423 Assert(Idx == FT->getNumParams(), "inalloca isn't on the last parameter!", in VerifyFunctionAttrs()
[all …]
/external/clang/utils/ABITest/
DABITestGen.py103 def writeFunction(self, i, FT): argument
104 args = ', '.join(['%s arg%d'%(self.getTypeName(t),i) for i,t in enumerate(FT.argTypes)])
108 if FT.returnType is None:
112 retvalTypeName = self.getTypeName(FT.returnType)
114 retvalName = self.getTestReturnValue(FT.returnType)
116 fnName = 'fn%d'%(FT.index,)
126 for i,t in enumerate(FT.argTypes):
149 retvalTests = self.getTestValuesArray(FT.returnType)
150 tests = map(self.getTestValuesArray, FT.argTypes)
160 … self.printValueOfType(' %s_RV'%fnName, 'RV', FT.returnType, output=self.outputTests, indent=4)
[all …]
/external/llvm/examples/ModuleMaker/
DModuleMaker.cpp33 FunctionType *FT = in main() local
38 Function *F = Function::Create(FT, Function::ExternalLinkage, "main", M); in main()
/external/clang/lib/CodeGen/
DCodeGenTypes.cpp224 bool CodeGenTypes::isFuncTypeConvertible(const FunctionType *FT) { in isFuncTypeConvertible() argument
225 if (!isFuncParamTypeConvertible(FT->getReturnType())) in isFuncTypeConvertible()
228 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in isFuncTypeConvertible()
478 const FunctionType *FT = cast<FunctionType>(Ty); in ConvertType() local
482 if (!isFuncTypeConvertible(FT)) { in ConvertType()
487 if (const RecordType *RT = FT->getReturnType()->getAs<RecordType>()) in ConvertType()
489 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in ConvertType()
514 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) { in ConvertType()
518 const FunctionNoProtoType *FNPT = cast<FunctionNoProtoType>(FT); in ConvertType()
/external/llvm/lib/Target/R600/
DR600TextureIntrinsicsReplacer.cpp121 void ReplaceCallInst(CallInst &I, FunctionType *FT, const char *Name, in ReplaceCallInst() argument
150 F = Function::Create(FT, GlobalValue::ExternalLinkage, Name, Mod); in ReplaceCallInst()
157 void ReplaceTexIntrinsic(CallInst &I, bool hasLOD, FunctionType *FT, in ReplaceTexIntrinsic() argument
179 ReplaceCallInst(I, FT, useShadowVariant?ShadowInt:VanillaInt, SrcSelect, in ReplaceTexIntrinsic()
/external/llvm/unittests/IR/
DWaymarkTest.cpp31 FunctionType *FT = FunctionType::get(Type::getVoidTy(getGlobalContext()), true); in TEST() local
33 Function::Create(FT, GlobalValue::ExternalLinkage)); in TEST()
/external/llvm/lib/Target/Mips/
DMips16HardFloat.cpp185 static bool needsFPReturnHelper(const FunctionType &FT) { in needsFPReturnHelper() argument
186 Type* RetType = FT.getReturnType(); in needsFPReturnHelper()
426 const FunctionType *FT=nullptr; in fixupFPReturnAndCall() local
427 if (PFT) FT = dyn_cast<FunctionType>(PFT->getElementType()); in fixupFPReturnAndCall()
429 if (FT && needsFPReturnHelper(*FT) && in fixupFPReturnAndCall()
/external/llvm/lib/ExecutionEngine/Orc/
DIndirectionUtils.cpp22 Constant* createIRTypedAddress(FunctionType &FT, TargetAddress Addr) { in createIRTypedAddress() argument
24 ConstantInt::get(Type::getInt64Ty(FT.getContext()), Addr); in createIRTypedAddress()
27 PointerType::get(&FT, 0)); in createIRTypedAddress()
/external/clang/lib/Sema/
DSemaExceptionSpec.cpp862 const FunctionProtoType *FT; in canCalleeThrow() local
863 if ((FT = T->getAs<FunctionProtoType>())) { in canCalleeThrow()
865 FT = PT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow()
867 FT = RT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow()
869 FT = MT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow()
871 FT = BT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow()
873 if (!FT) in canCalleeThrow()
876 FT = S.ResolveExceptionSpec(E->getLocStart(), FT); in canCalleeThrow()
877 if (!FT) in canCalleeThrow()
880 return FT->isNothrow(S.Context) ? CT_Cannot : CT_Can; in canCalleeThrow()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp1477 FunctionType *FT = Callee->getFunctionType(); in transformConstExprCastCall() local
1479 Type *NewRetTy = FT->getReturnType(); in transformConstExprCastCall()
1520 unsigned NumCommonArgs = std::min(FT->getNumParams(), NumActualArgs); in transformConstExprCastCall()
1536 Type *ParamTy = FT->getParamType(i); in transformConstExprCastCall()
1568 if (FT->getNumParams() < NumActualArgs && !FT->isVarArg()) in transformConstExprCastCall()
1575 if (FT->isVarArg()!=cast<FunctionType>(APTy->getElementType())->isVarArg()) in transformConstExprCastCall()
1581 if (FT->isVarArg() && in transformConstExprCastCall()
1583 FT->getNumParams() != in transformConstExprCastCall()
1588 if (FT->getNumParams() < NumActualArgs && FT->isVarArg() && in transformConstExprCastCall()
1595 if (Index <= FT->getNumParams()) in transformConstExprCastCall()
[all …]
/external/clang/lib/Analysis/
DBodyFarm.cpp37 const FunctionProtoType *FT = in isDispatchBlock() local
39 if (!FT || !FT->getReturnType()->isVoidType() || FT->getNumParams() != 0) in isDispatchBlock()
/external/llvm/include/llvm/Support/
DGenericDomTree.h717 template <class FT> void recalculate(FT &F) { in recalculate()
718 typedef GraphTraits<FT *> TraitsTy; in recalculate()
729 Calculate<FT, NodeT *>(*this, F); in recalculate()
744 Calculate<FT, Inverse<NodeT *>>(*this, F); in recalculate()
/external/clang/lib/Index/
DUSRGeneration.cpp660 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) { in VisitType() local
662 VisitType(FT->getReturnType()); in VisitType()
663 for (const auto &I : FT->param_types()) in VisitType()
665 if (FT->isVariadic()) in VisitType()
/external/llvm/lib/Analysis/
DLint.cpp214 FunctionType *FT = F->getFunctionType(); in visitCallSite() local
217 Assert(FT->isVarArg() ? FT->getNumParams() <= NumActualArgs in visitCallSite()
218 : FT->getNumParams() == NumActualArgs, in visitCallSite()
223 Assert(FT->getReturnType() == I.getType(), in visitCallSite()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp428 QualType convertFunctionTypeOfBlocks(const FunctionType *FT);
817 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)){ in RewritePropertyImplDecl() local
819 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { in RewritePropertyImplDecl()
822 FT->getParamType(i).getAsString(Context->getPrintingPolicy()); in RewritePropertyImplDecl()
825 if (FT->isVariadic()) { in RewritePropertyImplDecl()
826 if (FT->getNumParams()) in RewritePropertyImplDecl()
1143 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)) { in RewriteObjCMethodDecl() local
1145 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { in RewriteObjCMethodDecl()
1148 FT->getParamType(i).getAsString(Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1151 if (FT->isVariadic()) { in RewriteObjCMethodDecl()
[all …]
DRewriteModernObjC.cpp525 QualType convertFunctionTypeOfBlocks(const FunctionType *FT);
981 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)){ in RewritePropertyImplDecl() local
983 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { in RewritePropertyImplDecl()
986 FT->getParamType(i).getAsString(Context->getPrintingPolicy()); in RewritePropertyImplDecl()
989 if (FT->isVariadic()) { in RewritePropertyImplDecl()
990 if (FT->getNumParams()) in RewritePropertyImplDecl()
1338 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)) { in RewriteObjCMethodDecl() local
1340 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { in RewriteObjCMethodDecl()
1343 FT->getParamType(i).getAsString(Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1346 if (FT->isVariadic()) { in RewriteObjCMethodDecl()
[all …]
/external/pdfium/testing/resources/
Dbug_487928.in25 /FT /Tx

1234