[Mlir-commits] [flang] [llvm] [mlir] [Flang] [OpenMP] [MLIR] Add lowering support for OMP ALLOCATE directives and its clauses (PR #187167)
Tom Eccles
llvmlistbot at llvm.org
Wed Mar 18 04:03:55 PDT 2026
================
@@ -4595,6 +4595,22 @@ static Operation *getGlobalOpFromValue(Value value) {
return nullptr;
}
+static Value getBaseValueForTypeLookup(Value value) {
+ while (Operation *op = value.getDefiningOp()) {
+ if (auto addrCast = dyn_cast_if_present<LLVM::AddrSpaceCastOp>(op))
+ value = addrCast.getOperand();
+ else if (op->getName().getIdentifier()) {
----------------
tblah wrote:
I don't quite understand what this is doing, please could you add a comment with an example
https://github.com/llvm/llvm-project/pull/187167
More information about the Mlir-commits
mailing list