/external/llvm/lib/Transforms/Utils/ |
H A D | SimplifyLibCalls.cpp | 125 FunctionType *FT = F->getFunctionType(); local 129 unsigned NumParams = FT->getNumParams(); 132 if (FT->getReturnType() != FT->getParamType(0)) 143 if (NumParams != 3 || FT->getParamType(0) != FT->getParamType(1) || 144 FT->getParamType(0) != PCharTy || !FT->getParamType(2)->isIntegerTy()) 153 if (NumParams != 2 || FT->getParamType(0) != FT 190 FunctionType *FT = Callee->getFunctionType(); local 238 FunctionType *FT = Callee->getFunctionType(); local 280 FunctionType *FT = Callee->getFunctionType(); local 325 FunctionType *FT = Callee->getFunctionType(); local 360 FunctionType *FT = Callee->getFunctionType(); local 401 FunctionType *FT = Callee->getFunctionType(); local 471 FunctionType *FT = Callee->getFunctionType(); local 500 FunctionType *FT = Callee->getFunctionType(); local 543 FunctionType *FT = Callee->getFunctionType(); local 579 FunctionType *FT = Callee->getFunctionType(); local 612 FunctionType *FT = Callee->getFunctionType(); local 630 FunctionType *FT = Callee->getFunctionType(); local 658 FunctionType *FT = Callee->getFunctionType(); local 689 FunctionType *FT = Callee->getFunctionType(); local 750 FunctionType *FT = Callee->getFunctionType(); local 836 FunctionType *FT = Callee->getFunctionType(); local 954 FunctionType *FT = Callee->getFunctionType(); local 990 FunctionType *FT = Callee->getFunctionType(); local 1022 FunctionType *FT = Callee->getFunctionType(); local 1046 FunctionType *FT = Callee->getFunctionType(); local 1118 FunctionType *FT = Callee->getFunctionType(); local 1171 FunctionType *FT = Callee->getFunctionType(); local 1307 FunctionType *FT = Callee->getFunctionType(); local 1418 FunctionType *FT = Callee->getFunctionType(); local 1449 FunctionType *FT = Callee->getFunctionType(); local 1465 FunctionType *FT = Callee->getFunctionType(); local 1480 FunctionType *FT = Callee->getFunctionType(); local 1494 FunctionType *FT = Callee->getFunctionType(); local 1615 FunctionType *FT = Callee->getFunctionType(); local 1701 FunctionType *FT = Callee->getFunctionType(); local 1777 FunctionType *FT = Callee->getFunctionType(); local 1806 FunctionType *FT = Callee->getFunctionType(); local 1842 FunctionType *FT = Callee->getFunctionType(); local 1862 FunctionType *FT = Callee->getFunctionType(); local [all...] |
/external/llvm/examples/ModuleMaker/ |
H A D | ModuleMaker.cpp | 33 FunctionType *FT = local 38 Function *F = Function::Create(FT, Function::ExternalLinkage, "main", M);
|
/external/llvm/unittests/IR/ |
H A D | WaymarkTest.cpp | 31 FunctionType *FT = FunctionType::get(Type::getVoidTy(getGlobalContext()), true); local 33 Function::Create(FT, GlobalValue::ExternalLinkage));
|
/external/llvm/lib/IR/ |
H A D | Mangler.cpp | 145 FunctionType *FT = MSFunc->getFunctionType(); local 148 (!FT->isVarArg() || FT->getNumParams() == 0 || 149 (FT->getNumParams() == 1 && MSFunc->hasStructRetAttr())))
|
H A D | Function.cpp | 280 FunctionType *FT = getFunctionType(); local 281 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { 282 assert(!FT->getParamType(i)->isVoidTy() && 284 ArgumentList.push_back(new Argument(FT->getParamType(i))); 486 } else if (FunctionType* FT = dyn_cast<FunctionType>(Ty)) { 487 Result += "f_" + getMangledTypeStr(FT->getReturnType()); 488 for (size_t i = 0; i < FT->getNumParams(); i++) 489 Result += getMangledTypeStr(FT->getParamType(i)); 490 if (FT->isVarArg())
|
H A D | Type.cpp | 364 FunctionType *FT; local 367 FT = (FunctionType*) pImpl->TypeAllocator. 370 new (FT) FunctionType(ReturnType, Params, isVarArg); 371 pImpl->FunctionTypes.insert(FT); 373 FT = *I; 376 return FT;
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | ExternalFunctions.cpp | 95 FunctionType *FT = F->getFunctionType(); local 96 for (unsigned i = 0, e = FT->getNumContainedTypes(); i != e; ++i) 97 ExtName += getTypeID(FT->getContainedType(i)); 302 GenericValue lle_X_atexit(FunctionType *FT, argument 313 GenericValue lle_X_exit(FunctionType *FT, argument 321 GenericValue lle_X_abort(FunctionType *FT, argument 332 GenericValue lle_X_sprintf(FunctionType *FT, argument 415 GenericValue lle_X_printf(FunctionType *FT, argument 421 GenericValue GV = lle_X_sprintf(FT, NewArgs); 428 GenericValue lle_X_sscanf(FunctionType *FT, argument 444 lle_X_scanf(FunctionType *FT, const std::vector<GenericValue> &args) argument 461 lle_X_fprintf(FunctionType *FT, const std::vector<GenericValue> &Args) argument 474 lle_X_memset(FunctionType *FT, const std::vector<GenericValue> &Args) argument 486 lle_X_memcpy(FunctionType *FT, const std::vector<GenericValue> &Args) argument [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | DataFlowSanitizer.cpp | 265 Constant *getOrBuildTrampolineFunction(FunctionType *FT, StringRef FName); 399 FunctionType *FT; local 400 if (isa<PointerType>(*i) && (FT = dyn_cast<FunctionType>(cast<PointerType>( 402 ArgTypes.push_back(getTrampolineFunctionType(FT)->getPointerTo()); 524 FunctionType *FT = F->getFunctionType(); local 545 unsigned n = FT->getNumParams(); 549 if (FT->getReturnType()->isVoidTy()) 558 Constant *DataFlowSanitizer::getOrBuildTrampolineFunction(FunctionType *FT, argument 560 FunctionType *FTT = getTrampolineFunctionType(FT); 568 for (unsigned N = FT 693 FunctionType *FT = F.getFunctionType(); local 1432 FunctionType *FT = F->getFunctionType(); local 1518 FunctionType *FT = cast<FunctionType>( local [all...] |
/external/clang/lib/AST/ |
H A D | Mangle.cpp | 83 const FunctionType *FT = T->castAs<FunctionType>(); local 85 CallingConv CC = FT->getCallConv(); 164 const FunctionType *FT = FD->getType()->castAs<FunctionType>(); local 165 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FT);
|
H A D | DeclPrinter.cpp | 434 const FunctionProtoType *FT = nullptr; local 436 FT = dyn_cast<FunctionProtoType>(AFT); 439 if (FT) { 447 if (FT->isVariadic()) { 461 if (FT) { 462 if (FT->isConst()) 464 if (FT->isVolatile()) 466 if (FT->isRestrict()) 469 switch (FT->getRefQualifier()) { 481 if (FT [all...] |
/external/llvm/lib/Target/R600/ |
H A D | R600TextureIntrinsicsReplacer.cpp | 121 void ReplaceCallInst(CallInst &I, FunctionType *FT, const char *Name, argument 150 F = Function::Create(FT, GlobalValue::ExternalLinkage, Name, Mod); 157 void ReplaceTexIntrinsic(CallInst &I, bool hasLOD, FunctionType *FT, argument 179 ReplaceCallInst(I, FT, useShadowVariant?ShadowInt:VanillaInt, SrcSelect,
|
/external/clang/lib/CodeGen/ |
H A D | CodeGenTypes.cpp | 224 bool CodeGenTypes::isFuncTypeConvertible(const FunctionType *FT) { argument 225 if (!isFuncParamTypeConvertible(FT->getReturnType())) 228 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) 478 const FunctionType *FT = cast<FunctionType>(Ty); local 482 if (!isFuncTypeConvertible(FT)) { 487 if (const RecordType *RT = FT->getReturnType()->getAs<RecordType>()) 489 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) 514 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) { 518 const FunctionNoProtoType *FNPT = cast<FunctionNoProtoType>(FT);
|
/external/clang/utils/ABITest/ |
H A D | ABITestGen.py | 103 def writeFunction(self, i, FT): 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 [all...] |
/external/llvm/lib/Target/Mips/ |
H A D | Mips16HardFloat.cpp | 185 static bool needsFPReturnHelper(const FunctionType &FT) { argument 186 Type* RetType = FT.getReturnType(); 426 const FunctionType *FT=nullptr; local 427 if (PFT) FT = dyn_cast<FunctionType>(PFT->getElementType()); 429 if (FT && needsFPReturnHelper(*FT) &&
|
/external/llvm/lib/ExecutionEngine/Orc/ |
H A D | IndirectionUtils.cpp | 22 Constant* createIRTypedAddress(FunctionType &FT, TargetAddress Addr) { argument 24 ConstantInt::get(Type::getInt64Ty(FT.getContext()), Addr); 27 PointerType::get(&FT, 0));
|
/external/clang/lib/Sema/ |
H A D | SemaExceptionSpec.cpp | 862 const FunctionProtoType *FT; local 863 if ((FT = T->getAs<FunctionProtoType>())) { 865 FT = PT->getPointeeType()->getAs<FunctionProtoType>(); 867 FT = RT->getPointeeType()->getAs<FunctionProtoType>(); 869 FT = MT->getPointeeType()->getAs<FunctionProtoType>(); 871 FT = BT->getPointeeType()->getAs<FunctionProtoType>(); 873 if (!FT) 876 FT = S.ResolveExceptionSpec(E->getLocStart(), FT); 877 if (!FT) [all...] |
/external/clang/lib/Analysis/ |
H A D | BodyFarm.cpp | 37 const FunctionProtoType *FT = local 39 if (!FT || !FT->getReturnType()->isVoidType() || FT->getNumParams() != 0)
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1477 FunctionType *FT = Callee->getFunctionType(); local 1479 Type *NewRetTy = FT->getReturnType(); 1520 unsigned NumCommonArgs = std::min(FT->getNumParams(), NumActualArgs); 1536 Type *ParamTy = FT->getParamType(i); 1568 if (FT->getNumParams() < NumActualArgs && !FT->isVarArg()) 1575 if (FT->isVarArg()!=cast<FunctionType>(APTy->getElementType())->isVarArg()) 1581 if (FT->isVarArg() && 1583 FT->getNumParams() != 1588 if (FT [all...] |
/external/clang/lib/Index/ |
H A D | USRGeneration.cpp | 204 Out << "@FT@"; 660 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) { 662 VisitType(FT->getReturnType()); 663 for (const auto &I : FT->param_types()) 665 if (FT->isVariadic())
|
/external/skia/experimental/PdfViewer/pdfparser/native/pdfapi/ |
H A D | SkPdfFieldDictionary_autogen.cpp | 11 SkString SkPdfFieldDictionary::FT(SkPdfNativeDoc* doc) { function in class:SkPdfFieldDictionary 12 SkPdfNativeObject* ret = get("FT", ""); 20 return get("FT", "") != NULL;
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | RetainCountChecker.cpp | 648 const RetainSummary *getUnarySummary(const FunctionType* FT, 1046 const FunctionType* FT = FD->getType()->getAs<FunctionType>(); local 1058 QualType RetTy = FT->getReturnType(); 1071 ? getUnarySummary(FT, cfmakecollectable) 1155 S = getUnarySummary(FT, cfretain); 1157 S = getUnarySummary(FT, cfautorelease); 1162 S = getUnarySummary(FT, cfmakecollectable); 1174 S = getUnarySummary(FT, cfretain); 1204 S = getUnarySummary(FT, cfrelease); 1256 RetainSummaryManager::getUnarySummary(const FunctionType* FT, argument [all...] |
/external/llvm/examples/Kaleidoscope/Chapter3/ |
H A D | toy.cpp | 407 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), local 410 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
|
/external/llvm/include/llvm/Support/ |
H A D | GenericDomTree.h | 717 template <class FT> void recalculate(FT &F) { 718 typedef GraphTraits<FT *> TraitsTy; 729 Calculate<FT, NodeT *>(*this, F); 744 Calculate<FT, Inverse<NodeT *>>(*this, F);
|
/external/llvm/lib/Analysis/ |
H A D | Lint.cpp | 214 FunctionType *FT = F->getFunctionType(); local 217 Assert(FT->isVarArg() ? FT->getNumParams() <= NumActualArgs 218 : FT->getNumParams() == NumActualArgs, 223 Assert(FT->getReturnType() == I.getType(),
|
/external/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 525 QualType convertFunctionTypeOfBlocks(const FunctionType *FT); 981 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)){ 983 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { 986 FT->getParamType(i).getAsString(Context->getPrintingPolicy()); 989 if (FT->isVariadic()) { 990 if (FT->getNumParams()) 1338 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)) { 1340 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { 1343 FT->getParamType(i).getAsString(Context->getPrintingPolicy()); 1346 if (FT 2130 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 2719 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 2846 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 3006 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 3593 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 4152 const FunctionProtoType *FT = cast<FunctionProtoType>(AFT); local 4626 convertFunctionTypeOfBlocks(const FunctionType *FT) argument 4686 const FunctionType *FT = CPT->getPointeeType()->getAs<FunctionType>(); local [all...] |