Skip to content

Commit f71dd12

Browse files
authored
Integrate llvm-project@7c69491 (#19008)
Retains the revert for llvm-project@1004865
1 parent e7dc6f0 commit f71dd12

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

compiler/plugins/target/LLVMCPU/LLVMIRPasses.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ LogicalResult runLLVMIRPasses(const LLVMTarget &target,
5656
case SanitizerKind::kAddress: {
5757
passBuilder.registerOptimizerLastEPCallback(
5858
[](llvm::ModulePassManager &modulePassManager,
59-
llvm::OptimizationLevel Level) {
59+
llvm::OptimizationLevel Level, llvm::ThinOrFullLTOPhase) {
6060
llvm::AddressSanitizerOptions opts;
6161
// Can use Never or Always, just not the default Runtime, which
6262
// introduces a reference to
@@ -73,7 +73,7 @@ LogicalResult runLLVMIRPasses(const LLVMTarget &target,
7373
case SanitizerKind::kThread: {
7474
passBuilder.registerOptimizerLastEPCallback(
7575
[](llvm::ModulePassManager &modulePassManager,
76-
llvm::OptimizationLevel Level) {
76+
llvm::OptimizationLevel Level, llvm::ThinOrFullLTOPhase) {
7777
modulePassManager.addPass(llvm::ModuleThreadSanitizerPass());
7878
modulePassManager.addPass(llvm::createModuleToFunctionPassAdaptor(
7979
llvm::ThreadSanitizerPass()));

compiler/plugins/target/ROCM/test/opt_pass_plugin/GPUHello.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ bool GpuHello::runOnModule(llvm::Module &module) {
6767

6868
llvm::PassPluginLibraryInfo getPassPluginInfo() {
6969
const auto callback = [](llvm::PassBuilder &pb) {
70-
pb.registerOptimizerLastEPCallback([&](llvm::ModulePassManager &mpm, auto) {
71-
mpm.addPass(GpuHello());
72-
return true;
73-
});
70+
pb.registerOptimizerLastEPCallback(
71+
[&](llvm::ModulePassManager &mpm, auto, auto) {
72+
mpm.addPass(GpuHello());
73+
return true;
74+
});
7475
};
7576
return {LLVM_PLUGIN_API_VERSION, "gpu-hello", LLVM_VERSION_STRING, callback};
7677
};

compiler/src/iree/compiler/Dialect/Stream/IR/StreamOpFolders.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static APInt computeRequiredPatternBits(APInt pattern) {
105105
return APInt(16, b0 | (b1 << 8));
106106
} else if (b0 == b4 && b1 == b5 && b2 == b6 && b3 == b7) {
107107
// 0xAABBCCDDAABBCCDD : i64 => 0xAABBCCDD : i32
108-
return APInt(32, b0 | (b1 << 8) | (b2 << 16) | (b3 << 32));
108+
return APInt(32, b0 | (b1 << 8) | (b2 << 16) | (b3 << 24));
109109
}
110110
return pattern;
111111
}

compiler/src/iree/compiler/Dialect/Stream/IR/test/tensor_folding.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ util.func private @NarrowSplatPatternI64ToI16() -> !stream.resource<*> {
145145
util.func private @NarrowSplatPatternI64ToI32() -> !stream.resource<*> {
146146
%c100 = arith.constant 100 : index
147147
%pattern = arith.constant 0xAABBCCDDAABBCCDD : i64
148-
// CHECK: stream.tensor.splat %c12307677_i32
148+
// CHECK: stream.tensor.splat %c-1430532899_i32
149149
%0 = stream.tensor.splat %pattern : i64 -> tensor<2x2xf32> in !stream.resource<*>{%c100}
150150
util.return %0 : !stream.resource<*>
151151
}

third_party/llvm-project

Submodule llvm-project updated 871 files

0 commit comments

Comments
 (0)