Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/llvm-hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2619c2ed584cdf3b38e6743ed3c785223f06e3f7
0aa5ba43a0d11ce8e7f143380ae75fea516b6841
8 changes: 4 additions & 4 deletions python/src/llvm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ createTargetMachine(llvm::Module *module, std::string proc,
opt.MCOptions.AsmVerbose = true;
opt.MCOptions.PreserveAsmComments = true;
std::unique_ptr<llvm::TargetMachine> machine{target->createTargetMachine(
module->getTargetTriple(), proc, features, opt, llvm::Reloc::PIC_,
module->getTargetTriple().str(), proc, features, opt, llvm::Reloc::PIC_,
std::nullopt,
disableLLVMOpt ? llvm::CodeGenOptLevel::None
: llvm::CodeGenOptLevel::Aggressive)};
Expand Down Expand Up @@ -132,7 +132,7 @@ std::string translateLLVMIRToASM(llvm::Module &module,
// module->print(llvm::outs(), nullptr);

// create machine
module.setTargetTriple(triple);
module.setTargetTriple(Triple(triple));
auto machine = createTargetMachine(&module, proc, enable_fp_fusion, features);
// set data layout
module.setDataLayout(machine->createDataLayout());
Expand Down Expand Up @@ -277,8 +277,8 @@ void init_triton_llvm(py::module &&m) {
llvm::TargetOptions opt;
// Target machine is only used to create the data layout.
std::unique_ptr<llvm::TargetMachine> machine{target->createTargetMachine(
triple, proc, features, opt, llvm::Reloc::PIC_, std::nullopt,
llvm::CodeGenOptLevel::None)};
llvm::Triple(triple), proc, features, opt, llvm::Reloc::PIC_,
std::nullopt, llvm::CodeGenOptLevel::None)};
// set data layout
mod->setDataLayout(machine->createDataLayout());
});
Expand Down