[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 13:30:08 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:
This seems appropriate as well. Thank you!
https://github.com/llvm/llvm-project/pull/94242
More information about the flang-commits
mailing list