| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMTypes.cpp | 105 return !type.isa<LLVMVoidType, LLVMFunctionType>(); in isValidArgumentType() 112 LLVMFunctionType LLVMFunctionType::get(Type result, ArrayRef<Type> arguments, in get() 118 LLVMFunctionType 127 LLVMFunctionType LLVMFunctionType::clone(TypeRange inputs, in clone() 133 Type LLVMFunctionType::getReturnType() const { in getReturnType() 140 unsigned LLVMFunctionType::getNumParams() { in getNumParams() 144 Type LLVMFunctionType::getParamType(unsigned i) { in getParamType() 150 ArrayRef<Type> LLVMFunctionType::getParams() const { in getParams() 167 void LLVMFunctionType::walkImmediateSubElements( in walkImmediateSubElements() 174 Type LLVMFunctionType::replaceImmediateSubElements( in replaceImmediateSubElements() [all …]
|
| H A D | LLVMTypeSyntax.cpp | 41 .Case<LLVMFunctionType>([&](Type) { return "func"; }) in getTypeKeyword() 173 if (auto funcType = type.dyn_cast<LLVMFunctionType>()) in printType() 185 static LLVMFunctionType parseFunctionType(AsmParser &parser) { in parseFunctionType() 190 return LLVMFunctionType(); in parseFunctionType() 195 return parser.getChecked<LLVMFunctionType>(loc, returnType, llvm::None, in parseFunctionType() 197 return LLVMFunctionType(); in parseFunctionType() 205 return LLVMFunctionType(); in parseFunctionType() 206 return parser.getChecked<LLVMFunctionType>(loc, returnType, argTypes, in parseFunctionType() 212 return LLVMFunctionType(); in parseFunctionType() 217 return LLVMFunctionType(); in parseFunctionType() [all …]
|
| H A D | FunctionCallUtils.cpp | 53 LLVM::LLVMFunctionType::get(resultType, paramTypes)); in lookupOrCreateFn()
|
| H A D | LLVMDialect.cpp | 1029 auto llvmFuncType = LLVM::LLVMFunctionType::get(llvmResultType, argTypes); in parse() 1197 LLVMFunctionType funcType = fnType.dyn_cast<LLVMFunctionType>(); in verify() 1324 auto llvmFuncType = LLVM::LLVMFunctionType::get(llvmResultType, argTypes); in parse() 2172 LLVMFunctionType type = getFunctionType(); in addEntryBlock() 2198 assert(type.cast<LLVMFunctionType>().getNumParams() == argAttrs.size() && in build() 2238 return LLVMFunctionType::get(llvmOutput, llvmInputs, in buildLLVMFunctionType() 2310 LLVMFunctionType fnType = getFunctionType(); in print() 2721 LLVMFunctionType, in initialize()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/ |
| H A D | ConvertLaunchFuncToVulkanCalls.cpp | 297 LLVM::LLVMFunctionType::get(getVoidType(), in declareVulkanFunctions() 304 LLVM::LLVMFunctionType::get(getVoidType(), in declareVulkanFunctions() 312 LLVM::LLVMFunctionType::get( in declareVulkanFunctions() 320 LLVM::LLVMFunctionType::get(getVoidType(), {getPointerType()})); in declareVulkanFunctions() 334 auto fnType = LLVM::LLVMFunctionType::get( in declareVulkanFunctions() 346 loc, kInitVulkan, LLVM::LLVMFunctionType::get(getPointerType(), {})); in declareVulkanFunctions() 352 LLVM::LLVMFunctionType::get(getVoidType(), {getPointerType()})); in declareVulkanFunctions()
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/MCJIT/ |
| H A D | MCJITCAPITest.cpp | 171 LLVMFunctionType(LLVMInt32Type(), nullptr,0, 0)); in buildSimpleFunction() 192 LLVMFunctionType(LLVMVoidType(), stackmapParamTypes, 2, 1); in buildFunctionThatUsesStackmap() 198 LLVMFunctionType(LLVMInt32Type(), nullptr, 0, 0)); in buildFunctionThatUsesStackmap() 227 LLVMFunctionType(LLVMInt32Type(), nullptr, 0, 0)); in buildModuleWithCodeAndData() 247 Module, "setGlobal", LLVMFunctionType(LLVMVoidType(), ParamTypes, 1, 0)); in buildModuleWithCodeAndData() 487 LLVMTypeRef FunctionType = LLVMFunctionType(LLVMInt32Type(), nullptr, 0, 0); in TEST_F()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/ |
| H A D | LLVMTypes.h | 130 class LLVMFunctionType : public Type::TypeBase<LLVMFunctionType, Type, 149 static LLVMFunctionType get(Type result, ArrayRef<Type> arguments, 151 static LLVMFunctionType 157 LLVMFunctionType clone(TypeRange inputs, TypeRange results) const;
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | GPUOpsLowering.cpp | 155 LLVM::LLVMFunctionType type) { in getOrDefineFunction() 183 LLVM::LLVMFunctionType::get(llvmI64, {llvmI64})); in matchAndRewrite() 188 LLVM::LLVMFunctionType::get( in matchAndRewrite() 194 LLVM::LLVMFunctionType::get( in matchAndRewrite() 299 auto printfType = LLVM::LLVMFunctionType::get(rewriter.getI32Type(), {i8Ptr}, in matchAndRewrite()
|
| H A D | OpToFuncCallLowering.h | 58 funcType.cast<LLVM::LLVMFunctionType>().getReturnType()); in matchAndRewrite() 90 return LLVM::LLVMFunctionType::get(resultType, operandTypes); in getFunctionType()
|
| /llvm-project-15.0.7/mlir/lib/ExecutionEngine/ |
| H A D | JitRunner.cpp | 258 .cast<LLVM::LLVMFunctionType>() in checkCompatibleReturnType() 268 .cast<LLVM::LLVMFunctionType>() in checkCompatibleReturnType() 278 .cast<LLVM::LLVMFunctionType>() in checkCompatibleReturnType() 293 .cast<LLVM::LLVMFunctionType>() in compileAndExecuteSingleReturnFunction()
|
| /llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsReflectProcessSymbols/ |
| H A D | OrcV2CBindingsReflectProcessSymbols.c | 62 LLVMFunctionType(LLVMInt32Type(), I32BinOpParamTypes, 2, 0); in createDemoModule() 69 LLVMFunctionType(LLVMInt32Type(), MulAddParamTypes, 3, 0); in createDemoModule()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | TypeToLLVM.cpp | 73 .Case<LLVM::LLVMArrayType, IntegerType, LLVM::LLVMFunctionType, in translateType() 95 llvm::Type *translate(LLVM::LLVMFunctionType type) { in translate()
|
| H A D | TypeFromLLVM.cpp | 89 return LLVM::LLVMFunctionType::get(translateType(type->getReturnType()), in translate()
|
| /llvm-project-15.0.7/mlir/lib/CAPI/Dialect/ |
| H A D | LLVM.cpp | 34 return wrap(LLVMFunctionType::get( in mlirLLVMFunctionTypeGet()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/ |
| H A D | TypeConverter.cpp | 107 addConversion([&](LLVM::LLVMFunctionType type) -> llvm::Optional<Type> { in LLVMTypeConverter() 117 return LLVM::LLVMFunctionType::get(convertedResType, convertedArgTypes, in LLVMTypeConverter() 233 return LLVM::LLVMFunctionType::get(resultType, result.getConvertedTypes(), in convertFunctionSignature() 267 return {LLVM::LLVMFunctionType::get(resultType, inputs), resultIsNowArg}; in convertFunctionTypeCWrapper()
|
| /llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsBasicUsage/ |
| H A D | OrcV2CBindingsBasicUsage.c | 39 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
|
| /llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsDumpObjects/ |
| H A D | OrcV2CBindingsDumpObjects.c | 40 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
|
| /llvm-project-15.0.7/llvm/tools/llvm-c-test/ |
| H A D | calc.c | 122 LLVMTypeRef Fty = LLVMFunctionType(I64ty, &I64Ptrty, 1, 0); in handle_line()
|
| H A D | debuginfo.c | 100 LLVMTypeRef FooFuncTy = LLVMFunctionType(LLVMInt64Type(), FooParamTys, 3, 0); in llvm_test_dibuilder()
|
| /llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsAddObjectFile/ |
| H A D | OrcV2CBindingsAddObjectFile.c | 34 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
|
| /llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/ |
| H A D | OrcV2CBindingsRemovableCode.c | 39 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
|
| /llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/ |
| H A D | OrcV2CBindingsIRTransforms.c | 41 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/ControlFlowToLLVM/ |
| H A D | ControlFlowToLLVM.cpp | 50 auto abortFuncTy = LLVM::LLVMFunctionType::get(getVoidType(), {}); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | LowerToLLVM.cpp | 127 auto llvmFnType = LLVM::LLVMFunctionType::get(llvmI32Ty, llvmI8PtrTy, in getOrInsertPrintf()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/ |
| H A D | LowerToLLVM.cpp | 127 auto llvmFnType = LLVM::LLVMFunctionType::get(llvmI32Ty, llvmI8PtrTy, in getOrInsertPrintf()
|