Home
last modified time | relevance | path

Searched refs:LLVMFunctionType (Results 1 – 25 of 40) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMTypes.cpp105 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 DLLVMTypeSyntax.cpp41 .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 DFunctionCallUtils.cpp53 LLVM::LLVMFunctionType::get(resultType, paramTypes)); in lookupOrCreateFn()
H A DLLVMDialect.cpp1029 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 DConvertLaunchFuncToVulkanCalls.cpp297 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 DMCJITCAPITest.cpp171 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 DLLVMTypes.h130 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 DGPUOpsLowering.cpp155 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 DOpToFuncCallLowering.h58 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 DJitRunner.cpp258 .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 DOrcV2CBindingsReflectProcessSymbols.c62 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 DTypeToLLVM.cpp73 .Case<LLVM::LLVMArrayType, IntegerType, LLVM::LLVMFunctionType, in translateType()
95 llvm::Type *translate(LLVM::LLVMFunctionType type) { in translate()
H A DTypeFromLLVM.cpp89 return LLVM::LLVMFunctionType::get(translateType(type->getReturnType()), in translate()
/llvm-project-15.0.7/mlir/lib/CAPI/Dialect/
H A DLLVM.cpp34 return wrap(LLVMFunctionType::get( in mlirLLVMFunctionTypeGet()
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DTypeConverter.cpp107 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 DOrcV2CBindingsBasicUsage.c39 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsDumpObjects/
H A DOrcV2CBindingsDumpObjects.c40 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
/llvm-project-15.0.7/llvm/tools/llvm-c-test/
H A Dcalc.c122 LLVMTypeRef Fty = LLVMFunctionType(I64ty, &I64Ptrty, 1, 0); in handle_line()
H A Ddebuginfo.c100 LLVMTypeRef FooFuncTy = LLVMFunctionType(LLVMInt64Type(), FooParamTys, 3, 0); in llvm_test_dibuilder()
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsAddObjectFile/
H A DOrcV2CBindingsAddObjectFile.c34 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/
H A DOrcV2CBindingsRemovableCode.c39 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/
H A DOrcV2CBindingsIRTransforms.c41 LLVMFunctionType(LLVMInt32Type(), ParamTypes, 2, 0); in createDemoModule()
/llvm-project-15.0.7/mlir/lib/Conversion/ControlFlowToLLVM/
H A DControlFlowToLLVM.cpp50 auto abortFuncTy = LLVM::LLVMFunctionType::get(getVoidType(), {}); in matchAndRewrite()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DLowerToLLVM.cpp127 auto llvmFnType = LLVM::LLVMFunctionType::get(llvmI32Ty, llvmI8PtrTy, in getOrInsertPrintf()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DLowerToLLVM.cpp127 auto llvmFnType = LLVM::LLVMFunctionType::get(llvmI32Ty, llvmI8PtrTy, in getOrInsertPrintf()

12