[Mlir-commits] [mlir] [MLIR][LLVM][DLTI] Handle data layout token 'Fn32' (PR #141167)
Tobias Gysi
llvmlistbot at llvm.org
Thu May 22 23:34:10 PDT 2025
================
@@ -312,6 +312,16 @@ mlir::detail::getDefaultStackAlignment(DataLayoutEntryInterface entry) {
return value.getValue().getZExtValue();
}
+// Returns the function pointer alignment if specified in the given entry. If
+// the entry is empty the default alignment zero is returned.
+Attribute mlir::detail::getDefaultFunctionPointerAlignment(
+ DataLayoutEntryInterface entry) {
+ if (entry == DataLayoutEntryInterface()) {
+ return Attribute();
+ }
----------------
gysit wrote:
```suggestion
if (entry == DataLayoutEntryInterface())
return Attribute();
```
nit:
https://github.com/llvm/llvm-project/pull/141167
More information about the Mlir-commits
mailing list