-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Partially revert "[mlir][NVVM] Add constant memory space identifier" #111169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…lvm#111141) The second part of the change introduced circular dependency between LLVMDialect and BasicPtxBuilderInterface.
@llvm/pr-subscribers-mlir-llvm @llvm/pr-subscribers-mlir Author: Danial Klimkin (dklimkin) ChangesThe second part of the change introduced circular dependency between LLVMDialect and BasicPtxBuilderInterface. Full diff: https://github.com/llvm/llvm-project/pull/111169.diff 1 Files Affected:
diff --git a/mlir/lib/Dialect/LLVMIR/IR/BasicPtxBuilderInterface.cpp b/mlir/lib/Dialect/LLVMIR/IR/BasicPtxBuilderInterface.cpp
index d181700f757a5b..b109f00c3da13a 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/BasicPtxBuilderInterface.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/BasicPtxBuilderInterface.cpp
@@ -12,7 +12,6 @@
//===----------------------------------------------------------------------===//
#include "mlir/Dialect/LLVMIR/BasicPtxBuilderInterface.h"
-#include "mlir/Dialect/LLVMIR/NVVMDialect.h"
#define DEBUG_TYPE "ptx-builder"
#define DBGS() (llvm::dbgs() << "[" DEBUG_TYPE "]: ")
@@ -27,6 +26,8 @@
using namespace mlir;
using namespace NVVM;
+static constexpr int64_t kSharedMemorySpace = 3;
+
static char getRegisterType(Type type) {
if (type.isInteger(1))
return 'b';
@@ -42,7 +43,7 @@ static char getRegisterType(Type type) {
return 'd';
if (auto ptr = dyn_cast<LLVM::LLVMPointerType>(type)) {
// Shared address spaces is addressed with 32-bit pointers.
- if (ptr.getAddressSpace() == NVVMMemorySpace::kSharedMemorySpace) {
+ if (ptr.getAddressSpace() == kSharedMemorySpace) {
return 'r';
}
return 'l';
|
https://buildkite.com/llvm-project/upstream-bazel/builds/112567#019257b3-a062-4ea5-a6d5-e41469ca5055
|
@joker-eph well, I did try removing dep to see if it's real, the same way @bjacob did. Generally, the fly-by change was not needed for "Add constant memory space identifier". Thanks for addressing this, Benoit. |
The second part of the change introduced circular dependency between LLVMDialect and BasicPtxBuilderInterface.