Skip to content

Commit 2db925f

Browse files
yiqian1antiagainst
authored andcommitted
Pulls in these changes: - Fp8/BF8 type conversion ops (llvm/llvm-project#131850) - Accept Triples in createTargetMachine() (llvm/llvm-project#130940) Co-authored-by: Lei Zhang <[email protected]>
1 parent 3a3e5be commit 2db925f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmake/llvm-hash.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2619c2ed584cdf3b38e6743ed3c785223f06e3f7
1+
0ea4fb92648b2aa7cbab486bb493e122b4dcc062

python/src/llvm.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ createTargetMachine(llvm::Module *module, std::string proc,
5959
opt.MCOptions.AsmVerbose = true;
6060
opt.MCOptions.PreserveAsmComments = true;
6161
std::unique_ptr<llvm::TargetMachine> machine{target->createTargetMachine(
62-
module->getTargetTriple().str(), proc, features, opt, llvm::Reloc::PIC_,
62+
module->getTargetTriple(), proc, features, opt, llvm::Reloc::PIC_,
6363
std::nullopt,
6464
disableLLVMOpt ? llvm::CodeGenOptLevel::None
6565
: llvm::CodeGenOptLevel::Aggressive)};
@@ -277,8 +277,8 @@ void init_triton_llvm(py::module &&m) {
277277
llvm::TargetOptions opt;
278278
// Target machine is only used to create the data layout.
279279
std::unique_ptr<llvm::TargetMachine> machine{target->createTargetMachine(
280-
triple, proc, features, opt, llvm::Reloc::PIC_, std::nullopt,
281-
llvm::CodeGenOptLevel::None)};
280+
llvm::Triple(triple), proc, features, opt, llvm::Reloc::PIC_,
281+
std::nullopt, llvm::CodeGenOptLevel::None)};
282282
// set data layout
283283
mod->setDataLayout(machine->createDataLayout());
284284
});

0 commit comments

Comments
 (0)