Searched refs:FT (Results 1 - 25 of 52) sorted by relevance

123

/external/llvm/lib/Transforms/Scalar/
H A DSimplifyLibCalls.cpp142 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 DModuleMaker.cpp33 FunctionType *FT = local
38 Function *F = Function::Create(FT, Function::ExternalLinkage, "main", M);
/external/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp447 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 DExternalFunctions.cpp94 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 DLLVMContextImpl.h155 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 DFunction.cpp200 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 DType.cpp388 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 DVerifier.cpp302 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 DDeclPrinter.cpp420 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 DMicrosoftMangle.cpp229 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 DMangler.cpp219 FunctionType *FT = F->getFunctionType(); local
222 (!FT->isVarArg() || FT->getNumParams() == 0 ||
223 (FT->getNumParams() == 1 && F->hasStructRetAttr())))
/external/clang/utils/ABITest/
H A DABITestGen.py103 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 DSemaExceptionSpec.cpp794 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 DCodeGenTypes.cpp223 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 DCodeGenTypes.h136 bool isFuncTypeConvertible(const FunctionType *FT);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp992 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 Dtoy.cpp405 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), local
408 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
/external/clang/tools/libclang/
H A DCIndexUSRs.cpp190 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 DDominators.h648 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 DLint.cpp209 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 DRewriteModernObjC.cpp478 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 DRewriteObjC.cpp434 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 Dtoy.cpp413 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), local
416 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
/external/llvm/tools/bugpoint/
H A DExecutionDriver.cpp386 GCC::FileType FT = SafeInterpreter->OutputCode(BitcodeFile, OutputFile, local
392 bool Failure = gcc->MakeSharedObject(OutputFile.str(), FT, SharedObjectFile,
/external/clang/test/SemaTemplate/
H A Dinstantiate-member-template.cpp210 template<typename FT>
211 void F() {} // expected-note{{FT}}

Completed in 432 milliseconds

123