Lines Matching defs:FunctionType
183 return cast<FunctionType>(this)->isVarArg();
187 return cast<FunctionType>(this)->getParamType(i);
191 return cast<FunctionType>(this)->getNumParams();
338 // FunctionType Implementation
341 FunctionType::FunctionType(Type *Result, ArrayRef<Type*> Params,
360 // FunctionType::get - The factory function for the FunctionType class.
361 FunctionType *FunctionType::get(Type *ReturnType,
367 FunctionType *FT;
370 FT = (FunctionType*) pImpl->TypeAllocator.
371 Allocate(sizeof(FunctionType) + sizeof(Type*) * (Params.size() + 1),
372 AlignOf<FunctionType>::Alignment);
373 new (FT) FunctionType(ReturnType, Params, isVarArg);
382 FunctionType *FunctionType::get(Type *Result, bool isVarArg) {
388 bool FunctionType::isValidReturnType(Type *RetTy) {
395 bool FunctionType::isValidArgumentType(Type *ArgTy) {