Home
last modified time | relevance | path

Searched refs:llvmModule (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/
H A DSerializeToBlob.cpp39 gpu::SerializeToBlobPass::translateToISA(llvm::Module &llvmModule, in translateToISA() argument
41 llvmModule.setDataLayout(targetMachine.createDataLayout()); in translateToISA()
43 if (failed(optimizeLlvm(llvmModule, targetMachine))) in translateToISA()
57 codegenPasses.run(llvmModule); in translateToISA()
66 std::unique_ptr<llvm::Module> llvmModule = translateToLLVMIR(llvmContext); in runOnOperation() local
67 if (!llvmModule) in runOnOperation()
76 translateToISA(*llvmModule, *targetMachine); in runOnOperation()
101 gpu::SerializeToBlobPass::optimizeLlvm(llvm::Module &llvmModule, in optimizeLlvm() argument
H A DSerializeToHsaco.cpp89 LogicalResult optimizeLlvm(llvm::Module &llvmModule,
323 SerializeToHsacoPass::optimizeLlvm(llvm::Module &llvmModule, in optimizeLlvm() argument
334 auto error = transformer(&llvmModule); in optimizeLlvm()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DConvertToLLVMIR.cpp30 auto llvmModule = translateModuleToLLVMIR(module, llvmContext); in registerToLLVMIRTranslation() local
31 if (!llvmModule) in registerToLLVMIRTranslation()
34 llvmModule->print(output, nullptr); in registerToLLVMIRTranslation()
H A DDebugTranslation.cpp27 DebugTranslation::DebugTranslation(Operation *module, llvm::Module &llvmModule) in DebugTranslation() argument
28 : builder(llvmModule), llvmCtx(llvmModule.getContext()), in DebugTranslation()
43 builder.createFile(llvmModule.getModuleIdentifier(), "/"), in DebugTranslation()
48 if (!llvmModule.getModuleFlag(debugVersionKey)) in DebugTranslation()
49 llvmModule.addModuleFlag(llvm::Module::Warning, debugVersionKey, in DebugTranslation()
59 llvmModule.addModuleFlag(llvm::Module::Warning, "CodeView", 1); in DebugTranslation()
H A DModuleTranslation.cpp393 : mlirModule(module), llvmModule(std::move(llvmModule)), in ModuleTranslation()
396 typeTranslator(this->llvmModule->getContext()), in ModuleTranslation()
716 *llvmModule, f, in convertGlobals()
968 llvm::LLVMContext &ctx = llvmModule->getContext(); in createAccessGroupMetadata()
1002 llvm::LLVMContext &ctx = llvmModule->getContext(); in createAliasScopeMetadata()
1085 return llvmModule->getOrInsertNamedMetadata(name); in getOrInsertNamedModuleMetadata()
1113 llvmModule->setDataLayout(*llvmDataLayout); in prepareLLVMModule()
1127 return llvmModule; in prepareLLVMModule()
1136 std::unique_ptr<llvm::Module> llvmModule = in translateModuleToLLVMIR() local
1138 if (!llvmModule) in translateModuleToLLVMIR()
[all …]
H A DDebugTranslation.h31 DebugTranslation(Operation *module, llvm::Module &llvmModule);
H A DConvertFromLLVMIR.cpp1247 mlir::translateLLVMIRToModule(std::unique_ptr<llvm::Module> llvmModule, in translateLLVMIRToModule() argument
1255 translateDataLayout(llvmModule->getDataLayout(), context); in translateLLVMIRToModule()
1264 for (llvm::GlobalVariable &gv : llvmModule->globals()) { in translateLLVMIRToModule()
1268 for (llvm::Function &f : llvmModule->functions()) { in translateLLVMIRToModule()
1282 std::unique_ptr<llvm::Module> llvmModule = llvm::parseIR( in translateLLVMIRToModule() local
1284 if (!llvmModule) { in translateLLVMIRToModule()
1291 return translateLLVMIRToModule(std::move(llvmModule), context); in translateLLVMIRToModule()
/llvm-project-15.0.7/mlir/lib/ExecutionEngine/
H A DExecutionEngine.cpp117 bool ExecutionEngine::setupTargetTriple(Module *llvmModule) { in setupTargetTriple() argument
142 llvmModule->setDataLayout(machine->createDataLayout()); in setupTargetTriple()
143 llvmModule->setTargetTriple(targetTriple); in setupTargetTriple()
241 auto llvmModule = options.llvmModuleBuilder in create() local
244 if (!llvmModule) in create()
249 setupTargetTriple(llvmModule.get()); in create()
250 packFunctionArguments(llvmModule.get()); in create()
252 auto dataLayout = llvmModule->getDataLayout(); in create()
272 llvm::Triple targetTriple(llvm::Twine(llvmModule->getTargetTriple())); in create()
322 ThreadSafeModule tsm(std::move(llvmModule), std::move(ctx)); in create()
/llvm-project-15.0.7/flang/lib/Frontend/
H A DFrontendActions.cpp90 if (!llvmModule || llvm::verifyModule(*llvmModule, &llvm::errs())) { in beginSourceFileAction()
528 llvmModule = mlir::translateModuleToLLVMIR( in generateLLVMIR()
531 if (!llvmModule) { in generateLLVMIR()
560 if (llvmModule->getTargetTriple() != theTriple) { in setUpTargetMachine()
563 llvmModule->setTargetTriple(theTriple); in setUpTargetMachine()
630 llvm::Triple triple(llvmModule.getTargetTriple()); in generateMachineCodeOrAssemblyImpl()
648 codeGenPasses.run(llvmModule); in generateMachineCodeOrAssemblyImpl()
687 mpm.run(*llvmModule, mam); in runOptimizationPipeline()
724 if (!llvmModule) in executeAction()
737 llvmModule->setDataLayout(tm->createDataLayout()); in executeAction()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch6/
H A Dtoyc.cpp201 auto llvmModule = mlir::translateModuleToLLVMIR(module, llvmContext); in dumpLLVMIR() local
202 if (!llvmModule) { in dumpLLVMIR()
210 mlir::ExecutionEngine::setupTargetTriple(llvmModule.get()); in dumpLLVMIR()
216 if (auto err = optPipeline(llvmModule.get())) { in dumpLLVMIR()
220 llvm::errs() << *llvmModule << "\n"; in dumpLLVMIR()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/
H A Dtoyc.cpp202 auto llvmModule = mlir::translateModuleToLLVMIR(module, llvmContext); in dumpLLVMIR() local
203 if (!llvmModule) { in dumpLLVMIR()
211 mlir::ExecutionEngine::setupTargetTriple(llvmModule.get()); in dumpLLVMIR()
217 if (auto err = optPipeline(llvmModule.get())) { in dumpLLVMIR()
221 llvm::errs() << *llvmModule << "\n"; in dumpLLVMIR()
/llvm-project-15.0.7/mlir/include/mlir/Target/LLVMIR/
H A DModuleTranslation.h156 llvm::LLVMContext &getLLVMContext() const { return llvmModule->getContext(); } in getLLVMContext()
168 ompBuilder = std::make_unique<llvm::OpenMPIRBuilder>(*llvmModule); in getOpenMPBuilder()
269 std::unique_ptr<llvm::Module> llvmModule);
292 std::unique_ptr<llvm::Module> llvmModule; variable
H A DImport.h38 translateLLVMIRToModule(std::unique_ptr<llvm::Module> llvmModule,
/llvm-project-15.0.7/mlir/include/mlir/Dialect/GPU/Transforms/
H A DPasses.h75 virtual LogicalResult optimizeLlvm(llvm::Module &llvmModule,
87 Optional<std::string> translateToISA(llvm::Module &llvmModule,
/llvm-project-15.0.7/mlir/docs/Tutorials/Toy/
H A DCh-6.md190 std::unique_ptr<llvm::Module> llvmModule = mlir::translateModuleToLLVMIR(module);
191 if (!llvmModule)
257 auto llvmModule = mlir::translateModuleToLLVMIR(module, llvmContext);
258 if (!llvmModule) {
266 mlir::ExecutionEngine::setupTargetTriple(llvmModule.get());
272 if (auto err = optPipeline(llvmModule.get())) {
276 llvm::errs() << *llvmModule << "\n";
/llvm-project-15.0.7/mlir/include/mlir/ExecutionEngine/
H A DExecutionEngine.h183 static bool setupTargetTriple(llvm::Module *llvmModule);
/llvm-project-15.0.7/flang/include/flang/Frontend/
H A DFrontendActions.h218 std::unique_ptr<llvm::Module> llvmModule; variable
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DCodeGen.cpp3466 if (auto llvmModule = mlir::translateModuleToLLVMIR( in runOnOperation() local
3468 printer(*llvmModule, output); in runOnOperation()