[flang-commits] [flang] WIP: [flang] AliasAnalysis: Fix pointer component logic (PR #94242)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Thu Jun 13 12:25:31 PDT 2024
================
@@ -153,17 +153,16 @@ struct AliasAnalysis {
/// Return true, if Target or Pointer attribute is set.
bool isTargetOrPointer() const;
- /// Return true, if the memory source's `valueType` is a reference type
- /// to an object of derived type that contains a component with POINTER
- /// attribute.
- bool isRecordWithPointerComponent() const;
-
bool isDummyArgument() const;
bool isData() const;
bool isBoxData() const;
mlir::Type getType() const;
+ /// Return true, if `ty` is a reference type to an object of derived type
+ /// that contains a component with POINTER attribute.
+ static bool isRecordWithPointerComponent(mlir::Type ty);
----------------
vzakhari wrote:
nit: it may be better to make it a private static member of the `AliasAnalysis` class.
https://github.com/llvm/llvm-project/pull/94242
More information about the flang-commits
mailing list