[llvm] [IR] Add getDataLayout() helpers to BasicBlock and Instruction (PR #96902)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 06:49:26 PDT 2024
================
@@ -218,6 +219,11 @@ class BasicBlock final : public Value, // Basic blocks are data objects also
static_cast<const BasicBlock *>(this)->getModule());
}
+ /// Get the data layout of the module this instruction belongs to.
----------------
dtcxzyw wrote:
```suggestion
/// Get the data layout of the module this basic block belongs to.
```
https://github.com/llvm/llvm-project/pull/96902
More information about the llvm-commits
mailing list