[Mlir-commits] [mlir] 886ecb3 - [mlir] Remove setRelaxELFRelocations. NFC

Fangrui Song llvmlistbot at llvm.org
Wed Mar 6 23:12:44 PST 2024


Author: Fangrui Song
Date: 2024-03-06T23:12:40-08:00
New Revision: 886ecb3078e5f3a5cffc70408a637242c223c363

URL: https://github.com/llvm/llvm-project/commit/886ecb3078e5f3a5cffc70408a637242c223c363
DIFF: https://github.com/llvm/llvm-project/commit/886ecb3078e5f3a5cffc70408a637242c223c363.diff

LOG: [mlir] Remove setRelaxELFRelocations. NFC

The option is always true (see 2aedfdd9b82e6c72a28576d0e8ea854f1300ff4e)
and the MCAsmInfo option is going away in favor of MCTargetOptions.

Added: 
    

Modified: 
    mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp
    mlir/lib/Target/LLVM/ROCDL/Target.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp b/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp
index 2af898b5677422..b07addc77b56cc 100644
--- a/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp
+++ b/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp
@@ -340,7 +340,6 @@ LogicalResult SerializeToHsacoPass::assembleIsa(const std::string &isa,
       target->createMCRegInfo(this->triple));
   std::unique_ptr<llvm::MCAsmInfo> mai(
       target->createMCAsmInfo(*mri, this->triple, mcOptions));
-  mai->setRelaxELFRelocations(true);
   std::unique_ptr<llvm::MCSubtargetInfo> sti(
       target->createMCSubtargetInfo(this->triple, this->chip, this->features));
 

diff  --git a/mlir/lib/Target/LLVM/ROCDL/Target.cpp b/mlir/lib/Target/LLVM/ROCDL/Target.cpp
index 4f01c6a667819f..66593fd8a55fa6 100644
--- a/mlir/lib/Target/LLVM/ROCDL/Target.cpp
+++ b/mlir/lib/Target/LLVM/ROCDL/Target.cpp
@@ -276,7 +276,6 @@ SerializeGPUModuleBase::assembleIsa(StringRef isa) {
       target->createMCRegInfo(targetTriple));
   std::unique_ptr<llvm::MCAsmInfo> mai(
       target->createMCAsmInfo(*mri, targetTriple, mcOptions));
-  mai->setRelaxELFRelocations(true);
   std::unique_ptr<llvm::MCSubtargetInfo> sti(
       target->createMCSubtargetInfo(targetTriple, chip, features));
 


        


More information about the Mlir-commits mailing list