[Mlir-commits] [mlir] ae29d5a - [mlir] Provide a home for mlir::LLVM::GEPOp::kDynamicIndex
Benjamin Kramer
llvmlistbot at llvm.org
Fri Jan 7 03:06:16 PST 2022
Author: Benjamin Kramer
Date: 2022-01-07T12:06:04+01:00
New Revision: ae29d5a48420eace6d2c43cb2345eb04a7cc646c
URL: https://github.com/llvm/llvm-project/commit/ae29d5a48420eace6d2c43cb2345eb04a7cc646c
DIFF: https://github.com/llvm/llvm-project/commit/ae29d5a48420eace6d2c43cb2345eb04a7cc646c.diff
LOG: [mlir] Provide a home for mlir::LLVM::GEPOp::kDynamicIndex
C++14 requires this and will trigger linker errors when optimizations
are disabled.
Added:
Modified:
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
index 0f6c91ffd3f5..c3b7163656c6 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
@@ -360,6 +360,8 @@ SwitchOp::getMutableSuccessorOperands(unsigned index) {
// Code for LLVM::GEPOp.
//===----------------------------------------------------------------------===//
+constexpr int GEPOp::kDynamicIndex;
+
/// Populates `indices` with positions of GEP indices that would correspond to
/// LLVMStructTypes potentially nested in the given type. The type currently
/// visited gets `currentIndex` and LLVM container types are visited
More information about the Mlir-commits
mailing list