/external/llvm/lib/Transforms/Scalar/ |
H A D | SimplifyLibCalls.cpp | 142 FunctionType *FT = Callee->getFunctionType(); local 143 if (FT->getNumParams() != 2 || 144 FT->getReturnType() != B.getInt8PtrTy() || 145 FT->getParamType(0) != FT->getReturnType() || 146 FT->getParamType(1) != FT->getReturnType()) 194 FunctionType *FT = Callee->getFunctionType(); local 195 if (FT->getNumParams() != 3 || 196 FT 241 FunctionType *FT = Callee->getFunctionType(); local 290 FunctionType *FT = Callee->getFunctionType(); local 329 FunctionType *FT = Callee->getFunctionType(); local 377 FunctionType *FT = Callee->getFunctionType(); local 436 FunctionType *FT = Callee->getFunctionType(); local 477 FunctionType *FT = Callee->getFunctionType(); local 516 FunctionType *FT = Callee->getFunctionType(); local 565 FunctionType *FT = Callee->getFunctionType(); local 591 FunctionType *FT = Callee->getFunctionType(); local 629 FunctionType *FT = Callee->getFunctionType(); local 651 FunctionType *FT = Callee->getFunctionType(); local 683 FunctionType *FT = Callee->getFunctionType(); local 718 FunctionType *FT = Callee->getFunctionType(); local 787 FunctionType *FT = Callee->getFunctionType(); local 907 FunctionType *FT = Callee->getFunctionType(); local 945 FunctionType *FT = Callee->getFunctionType(); local 974 FunctionType *FT = Callee->getFunctionType(); local 1036 FunctionType *FT = Callee->getFunctionType(); local 1091 FunctionType *FT = Callee->getFunctionType(); local 1127 FunctionType *FT = Callee->getFunctionType(); local 1146 FunctionType *FT = Callee->getFunctionType(); local 1164 FunctionType *FT = Callee->getFunctionType(); local 1185 FunctionType *FT = Callee->getFunctionType(); local 1263 FunctionType *FT = Callee->getFunctionType(); local 1359 FunctionType *FT = Callee->getFunctionType(); local 1390 FunctionType *FT = Callee->getFunctionType(); local 1498 FunctionType *FT = Callee->getFunctionType(); local 1529 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/lib/Transforms/Utils/ |
H A D | BuildLibCalls.cpp | 447 FunctionType *FT = Callee->getFunctionType(); local 453 if (FT->getNumParams() != 4 || FT->getReturnType() != FT->getParamType(0) || 454 !FT->getParamType(0)->isPointerTy() || 455 !FT->getParamType(1)->isPointerTy() || 456 FT->getParamType(2) != TD->getIntPtrType(Context) || 457 FT->getParamType(3) != TD->getIntPtrType(Context)) 476 if (FT->getNumParams() != 4 || FT [all...] |
/external/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | ExternalFunctions.cpp | 94 FunctionType *FT = F->getFunctionType(); local 95 for (unsigned i = 0, e = FT->getNumContainedTypes(); i != e; ++i) 96 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 414 GenericValue lle_X_printf(FunctionType *FT, argument 420 GenericValue GV = lle_X_sprintf(FT, NewArgs); 427 GenericValue lle_X_sscanf(FunctionType *FT, argument 443 lle_X_scanf(FunctionType *FT, const std::vector<GenericValue> &args) argument 460 lle_X_fprintf(FunctionType *FT, const std::vector<GenericValue> &Args) argument [all...] |
/external/llvm/lib/VMCore/ |
H A D | LLVMContextImpl.h | 155 KeyTy(const FunctionType* FT) : argument 156 ReturnType(FT->getReturnType()), 157 Params(ArrayRef<Type*>(FT->param_begin(), FT->param_end())), 158 isVarArg(FT->isVarArg()) {} 184 static unsigned getHashValue(const FunctionType *FT) { argument 185 return getHashValue(KeyTy(FT));
|
H A D | Function.cpp | 200 FunctionType *FT = getFunctionType(); local 201 for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) { 202 assert(!FT->getParamType(i)->isVoidTy() && 204 ArgumentList.push_back(new Argument(FT->getParamType(i)));
|
H A D | Type.cpp | 388 FunctionType *FT; local 391 FT = (FunctionType*) pImpl->TypeAllocator. 394 new (FT) FunctionType(ReturnType, Params, isVarArg); 395 pImpl->FunctionTypes[FT] = true; 397 FT = I->first; 400 return FT;
|
H A D | Verifier.cpp | 302 void VerifyFunctionAttrs(FunctionType *FT, const AttrListPtr &Attrs, 567 void Verifier::VerifyFunctionAttrs(FunctionType *FT, argument 580 Ty = FT->getReturnType(); 581 else if (Attr.Index-1 < FT->getNumParams()) 582 Ty = FT->getParamType(Attr.Index-1); 628 FunctionType *FT = F.getFunctionType(); local 635 Assert2(FT->getNumParams() == NumArgs, 637 &F, FT); 648 Assert1(VerifyAttributeCount(Attrs, FT->getNumParams()), 652 VerifyFunctionAttrs(FT, Attr [all...] |
/external/clang/lib/AST/ |
H A D | DeclPrinter.cpp | 420 const FunctionProtoType *FT = 0; local 422 FT = dyn_cast<FunctionProtoType>(AFT); 425 if (FT) { 433 if (FT->isVariadic()) { 447 if (FT) { 448 if (FT->isConst()) 450 if (FT->isVolatile()) 452 if (FT->isRestrict()) 456 if (FT && FT [all...] |
H A D | MicrosoftMangle.cpp | 229 const FunctionProtoType *FT = FD->getType()->castAs<FunctionProtoType>(); local 243 mangleType(FT, FD, InStructor, InInstMethod); 1248 const FunctionProtoType *FT) { 1422 } else if (const FunctionType *FT = PointeeTy->getAs<FunctionType>()) { 1425 mangleType(FT, NULL, false, false); 1247 mangleThrowSpecification( const FunctionProtoType *FT) argument
|
/external/llvm/lib/Target/ |
H A D | Mangler.cpp | 219 FunctionType *FT = F->getFunctionType(); local 222 (!FT->isVarArg() || FT->getNumParams() == 0 || 223 (FT->getNumParams() == 1 && F->hasStructRetAttr())))
|
/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/clang/lib/Sema/ |
H A D | SemaExceptionSpec.cpp | 794 const FunctionProtoType *FT; local 795 if ((FT = T->getAs<FunctionProtoType>())) { 797 FT = PT->getPointeeType()->getAs<FunctionProtoType>(); 799 FT = RT->getPointeeType()->getAs<FunctionProtoType>(); 801 FT = MT->getPointeeType()->getAs<FunctionProtoType>(); 803 FT = BT->getPointeeType()->getAs<FunctionProtoType>(); 805 if (!FT) 808 FT = S.ResolveExceptionSpec(E->getLocStart(), FT); 809 if (!FT) [all...] |
/external/clang/lib/CodeGen/ |
H A D | CodeGenTypes.cpp | 223 bool CodeGenTypes::isFuncTypeConvertible(const FunctionType *FT) { argument 224 if (!isFuncTypeArgumentConvertible(FT->getResultType())) 227 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) 450 const FunctionType *FT = cast<FunctionType>(Ty); local 454 if (!isFuncTypeConvertible(FT)) { 476 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) { 480 const FunctionNoProtoType *FNPT = cast<FunctionNoProtoType>(FT);
|
H A D | CodeGenTypes.h | 136 bool isFuncTypeConvertible(const FunctionType *FT);
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 992 FunctionType *FT = Callee->getFunctionType(); local 994 Type *NewRetTy = FT->getReturnType(); 1036 unsigned NumCommonArgs = std::min(FT->getNumParams(), NumActualArgs); 1040 Type *ParamTy = FT->getParamType(i); 1075 if (FT->getNumParams() < NumActualArgs && !FT->isVarArg()) 1082 if (FT->isVarArg()!=cast<FunctionType>(APTy->getElementType())->isVarArg()) 1088 if (FT->isVarArg() && 1090 FT->getNumParams() != 1095 if (FT [all...] |
/external/llvm/examples/Kaleidoscope/Chapter3/ |
H A D | toy.cpp | 405 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), local 408 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
|
/external/clang/tools/libclang/ |
H A D | CIndexUSRs.cpp | 190 Out << "@FT@"; 632 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) { 634 VisitType(FT->getResultType()); 636 I = FT->arg_type_begin(), E = FT->arg_type_end(); I!=E; ++I) { 639 if (FT->isVariadic())
|
/external/llvm/include/llvm/Analysis/ |
H A D | Dominators.h | 648 template<class FT> 649 void recalculate(FT& F) { 650 typedef GraphTraits<FT*> TraitsTy; 661 Calculate<FT, NodeT*>(*this, F); 675 Calculate<FT, Inverse<NodeT*> >(*this, F);
|
/external/llvm/lib/Analysis/ |
H A D | Lint.cpp | 209 FunctionType *FT = F->getFunctionType(); local 212 Assert1(FT->isVarArg() ? 213 FT->getNumParams() <= NumActualArgs : 214 FT->getNumParams() == NumActualArgs, 218 Assert1(FT->getReturnType() == I.getType(),
|
/external/clang/lib/Rewrite/Frontend/ |
H A D | RewriteModernObjC.cpp | 478 QualType convertFunctionTypeOfBlocks(const FunctionType *FT); 920 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)){ 922 for (unsigned i = 0, e = FT->getNumArgs(); i != e; ++i) { 924 std::string ParamStr = FT->getArgType(i).getAsString( 928 if (FT->isVariadic()) { 929 if (FT->getNumArgs()) Getr += ", "; 1286 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)) { 1288 for (unsigned i = 0, e = FT->getNumArgs(); i != e; ++i) { 1290 std::string ParamStr = FT->getArgType(i).getAsString( 1294 if (FT 2070 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 2677 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 2815 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 2989 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 3546 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 3981 const FunctionProtoType *FT = cast<FunctionProtoType>(AFT); local 4463 convertFunctionTypeOfBlocks(const FunctionType *FT) argument 4524 const FunctionType *FT = CPT->getPointeeType()->getAs<FunctionType>(); local [all...] |
H A D | RewriteObjC.cpp | 434 QualType convertFunctionTypeOfBlocks(const FunctionType *FT); 818 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)){ 820 for (unsigned i = 0, e = FT->getNumArgs(); i != e; ++i) { 822 std::string ParamStr = FT->getArgType(i).getAsString( 826 if (FT->isVariadic()) { 827 if (FT->getNumArgs()) Getr += ", "; 1158 if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FPRetType)) { 1160 for (unsigned i = 0, e = FT->getNumArgs(); i != e; ++i) { 1162 std::string ParamStr = FT->getArgType(i).getAsString( 1166 if (FT 2059 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 2663 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 3047 const FunctionType *FT = msgSendType->getAs<FunctionType>(); local 3357 const FunctionProtoType *FT = cast<FunctionProtoType>(AFT); local 3795 convertFunctionTypeOfBlocks(const FunctionType *FT) argument 3858 const FunctionType *FT = CPT->getPointeeType()->getAs<FunctionType>(); local [all...] |
/external/llvm/examples/Kaleidoscope/Chapter4/ |
H A D | toy.cpp | 413 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), local 416 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
|
/external/llvm/tools/bugpoint/ |
H A D | ExecutionDriver.cpp | 386 GCC::FileType FT = SafeInterpreter->OutputCode(BitcodeFile, OutputFile, local 392 bool Failure = gcc->MakeSharedObject(OutputFile.str(), FT, SharedObjectFile,
|
/external/clang/test/SemaTemplate/ |
H A D | instantiate-member-template.cpp | 210 template<typename FT> 211 void F() {} // expected-note{{FT}}
|