Searched refs:FTy (Results 1 - 25 of 34) sorted by relevance

12

/macosx-10.10/llvmCore-3425.0.34/lib/Transforms/Scalar/
H A DSimplifyLibCalls.cpp1845 FunctionType *FTy = F.getFunctionType(); local
1851 if (FTy->getNumParams() != 1 || !FTy->getParamType(0)->isPointerTy())
1858 if (FTy->getNumParams() != 2 ||
1859 !FTy->getParamType(0)->isPointerTy() ||
1860 !FTy->getParamType(1)->isIntegerTy())
1877 if (FTy->getNumParams() < 2 ||
1878 !FTy->getParamType(1)->isPointerTy())
1883 if (FTy->getNumParams() != 3 ||
1884 !FTy
[all...]
H A DObjCARC.cpp1790 FunctionType *FTy = FunctionType::get(I8X, Params, /*isVarArg=*/false); local
1793 M->getOrInsertFunction("objc_retainAutoreleasedReturnValue", FTy,
1804 FunctionType *FTy = FunctionType::get(I8X, Params, /*isVarArg=*/false); local
1807 M->getOrInsertFunction("objc_autoreleaseReturnValue", FTy,
3851 FunctionType *FTy = FunctionType::get(I8X, Params, /*isVarArg=*/false); local
3854 M->getOrInsertFunction("objc_retainAutorelease", FTy, Attributes);
3864 FunctionType *FTy = FunctionType::get(I8X, Params, /*isVarArg=*/false); local
3867 M->getOrInsertFunction("objc_retainAutoreleaseReturnValue", FTy,
/macosx-10.10/llvmCore-3425.0.34/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp158 FunctionType *FTy = F->getFunctionType(); local
159 Type *RetTy = FTy->getReturnType();
161 assert((FTy->getNumParams() == ArgValues.size() ||
162 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) &&
164 assert(FTy->getNumParams() == ArgValues.size() &&
172 if (FTy->getParamType(0)->isIntegerTy(32) &&
173 FTy->getParamType(1)->isPointerTy() &&
174 FTy->getParamType(2)->isPointerTy()) {
187 if (FTy
[all...]
/macosx-10.10/llvmCore-3425.0.34/unittests/VMCore/
H A DVerifierTest.cpp27 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), /*isVarArg=*/false); local
28 OwningPtr<Function> F(Function::Create(FTy, GlobalValue::ExternalLinkage));
H A DIRBuilderTest.cpp29 FunctionType *FTy = FunctionType::get(Type::getVoidTy(getGlobalContext()), local
31 F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
/macosx-10.10/llvmCore-3425.0.34/lib/ExecutionEngine/JIT/
H A DJIT.cpp395 FunctionType *FTy = F->getFunctionType(); local
396 Type *RetTy = FTy->getReturnType();
398 assert((FTy->getNumParams() == ArgValues.size() ||
399 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) &&
401 assert(FTy->getNumParams() == ArgValues.size() &&
409 if (FTy->getParamType(0)->isIntegerTy(32) &&
410 FTy->getParamType(1)->isPointerTy() &&
411 FTy->getParamType(2)->isPointerTy()) {
424 if (FTy
[all...]
/macosx-10.10/llvmCore-3425.0.34/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp580 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), local
582 return M->getOrInsertFunction("llvm_gcda_start_file", FTy);
592 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); local
593 return M->getOrInsertFunction("__llvm_gcov_indirect_counter_increment", FTy);
601 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); local
602 return M->getOrInsertFunction("llvm_gcda_emit_function", FTy);
610 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), local
612 return M->getOrInsertFunction("llvm_gcda_emit_arcs", FTy);
616 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); local
617 return M->getOrInsertFunction("llvm_gcda_end_file", FTy);
680 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); local
753 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); local
[all...]
/macosx-10.10/llvmCore-3425.0.34/lib/CodeGen/
H A DDwarfEHPrepare.cpp127 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx), local
130 RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy);
/macosx-10.10/llvmCore-3425.0.34/lib/Analysis/
H A DMemoryBuiltins.cpp119 FunctionType *FTy = Callee->getFunctionType(); local
121 if (FTy->getReturnType() == Type::getInt8PtrTy(FTy->getContext()) &&
122 FTy->getNumParams() == FnData->NumParams &&
124 (FTy->getParamType(FstParam)->isIntegerTy(32) ||
125 FTy->getParamType(FstParam)->isIntegerTy(64))) &&
127 FTy->getParamType(SndParam)->isIntegerTy(32) ||
128 FTy->getParamType(SndParam)->isIntegerTy(64)))
322 FunctionType *FTy = Callee->getFunctionType();
323 if (!FTy
[all...]
/macosx-10.10/llvmCore-3425.0.34/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp209 FunctionType *FTy = Fn.getFunctionType(); local
211 std::vector<Type*> Params(FTy->param_begin(), FTy->param_end());
212 FunctionType *NFTy = FunctionType::get(FTy->getReturnType(),
649 FunctionType *FTy = F->getFunctionType();
662 Type *RetTy = FTy->getReturnType();
729 SmallVector<bool, 10> ArgAlive(FTy->getNumParams(), false);
759 FunctionType *NFTy = FunctionType::get(NRetTy, Params, FTy->isVarArg());
762 if (NFTy == FTy)
799 for (unsigned e = FTy
[all...]
H A DMergeFunctions.cpp79 FunctionType *FTy = F->getFunctionType(); local
85 ID.AddBoolean(FTy->isVarArg());
86 ID.AddInteger(FTy->getReturnType()->getTypeID());
87 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i)
88 ID.AddInteger(FTy->getParamType(i)->getTypeID());
H A DArgumentPromotion.cpp494 FunctionType *FTy = F->getFunctionType(); local
593 Type *RetTy = FTy->getReturnType();
596 FunctionType *NFTy = FunctionType::get(RetTy, Params, FTy->isVarArg());
H A DGlobalOpt.cpp2213 Type *FTy = FunctionType::get(Type::getVoidTy(GCL->getContext()), local
2215 PointerType *PFTy = PointerType::getUnqual(FTy);
3008 FunctionType *FTy = Fn->getFunctionType();
3012 if (!FTy->getReturnType()->isIntegerTy() ||
3013 FTy->getNumParams() != 3 ||
3014 !FTy->getParamType(0)->isPointerTy() ||
3015 !FTy->getParamType(1)->isPointerTy() ||
3016 !FTy->getParamType(2)->isPointerTy())
/macosx-10.10/llvmCore-3425.0.34/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp185 FunctionType *FTy = F->getFunctionType(); local
201 Type *ArgTy = FTy->getParamType(ArgNo);
213 Type *ArgTy = FTy->getParamType(ArgNo);
218 Type *RetTy = FTy->getReturnType();
/macosx-10.10/llvmCore-3425.0.34/unittests/Analysis/
H A DScalarEvolutionTest.cpp40 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Context), local
42 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy));
94 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Context), Types, false); local
95 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy));
/macosx-10.10/llvmCore-3425.0.34/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp966 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); local
967 if (FTy->isVarArg()) {
968 int ix = FTy->getNumParams();
971 for (CallSite::arg_iterator I = CS.arg_begin()+FTy->getNumParams(),
1261 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); local
1337 // The trampoline may have been bitcast to a bogus type (FTy).
1338 // Handle this by synthesizing a new function type, equal to FTy
1342 NewTypes.reserve(FTy->getNumParams()+1);
1348 FunctionType::param_iterator I = FTy->param_begin(),
1349 E = FTy
[all...]
/macosx-10.10/llvmCore-3425.0.34/lib/VMCore/
H A DAsmWriter.cpp230 FunctionType *FTy = cast<FunctionType>(Ty); local
231 print(FTy->getReturnType(), OS);
233 for (FunctionType::param_iterator I = FTy->param_begin(),
234 E = FTy->param_end(); I != E; ++I) {
235 if (I != FTy->param_begin())
239 if (FTy->isVarArg()) {
240 if (FTy->getNumParams()) OS << ", ";
1849 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); local
1850 Type *RetTy = FTy->getReturnType();
1861 if (!FTy
1882 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); local
[all...]
H A DVerifier.cpp1143 FunctionType *FTy = cast<FunctionType>(FPTy->getElementType()); local
1146 if (FTy->isVarArg())
1147 Assert1(CS.arg_size() >= FTy->getNumParams(),
1150 Assert1(CS.arg_size() == FTy->getNumParams(),
1154 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i)
1155 Assert3(CS.getArgument(i)->getType() == FTy->getParamType(i),
1157 CS.getArgument(i), FTy->getParamType(i), I);
1165 VerifyFunctionAttrs(FTy, Attrs, I);
1167 if (FTy->isVarArg())
1169 for (unsigned Idx = 1 + FTy
[all...]
H A DInstructions.cpp270 FunctionType *FTy =
273 assert((Args.size() == FTy->getNumParams() ||
274 (FTy->isVarArg() && Args.size() > FTy->getNumParams())) &&
278 assert((i >= FTy->getNumParams() ||
279 FTy->getParamType(i) == Args[i]->getType()) &&
292 FunctionType *FTy = local
295 assert(FTy->getNumParams() == 0 && "Calling a function with bad signature");
527 FunctionType *FTy = local
530 assert(((Args.size() == FTy
[all...]
/macosx-10.10/llvmCore-3425.0.34/lib/ExecutionEngine/
H A DExecutionEngine.cpp362 FunctionType *FTy = Fn->getFunctionType(); local
368 if (NumArgs >= 3 && FTy->getParamType(2) != PPInt8Ty)
370 if (NumArgs >= 2 && FTy->getParamType(1) != PPInt8Ty)
372 if (NumArgs >= 1 && !FTy->getParamType(0)->isIntegerTy(32))
374 if (!FTy->getReturnType()->isIntegerTy() &&
375 !FTy->getReturnType()->isVoidTy())
/macosx-10.10/llvmCore-3425.0.34/unittests/ExecutionEngine/JIT/
H A DJITMemoryManagerTest.cpp25 FunctionType *FTy = local
27 return Function::Create(FTy, GlobalValue::ExternalLinkage);
/macosx-10.10/llvmCore-3425.0.34/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1635 FunctionType *FTy =
1637 if (!FTy)
1640 Function *Func = Function::Create(FTy, GlobalValue::ExternalLinkage,
2390 FunctionType *FTy = !CalleeTy ? 0 : local
2394 if (FTy == 0 || NormalBB == 0 || UnwindBB == 0 ||
2395 Record.size() < OpNum+FTy->getNumParams())
2399 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i, ++OpNum) {
2400 Ops.push_back(getFnValueByID(Record[OpNum], FTy->getParamType(i)));
2404 if (!FTy->isVarArg()) {
2645 FunctionType *FTy local
[all...]
/macosx-10.10/llvmCore-3425.0.34/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp1226 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); local
1236 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i)
1240 if (FTy->isVarArg()) {
1241 for (unsigned i = FTy->getNumParams(), e = I.getNumOperands()-3;
1352 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); local
1361 for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i)
1365 if (FTy->isVarArg()) {
1366 for (unsigned i = FTy->getNumParams(), e = CI.getNumArgOperands();
/macosx-10.10/llvmCore-3425.0.34/lib/Transforms/Utils/
H A DCloneFunction.cpp173 FunctionType *FTy = FunctionType::get(F->getFunctionType()->getReturnType(), local
177 Function *NewF = Function::Create(FTy, F->getLinkage(), F->getName());
/macosx-10.10/llvmCore-3425.0.34/include/llvm/Target/
H A DTargetLowering.h1319 FunctionType *FTy, bool isTailCall, SDValue callee,
1323 RetZExt(cs.paramHasAttr(0, Attribute::ZExt)), IsVarArg(FTy->isVarArg()),
1327 IsTailCall(isTailCall), NumFixedArgs(FTy->getNumParams()),

Completed in 412 milliseconds

12