[llvm] [AArch64] Add CodeGen support for FEAT_CPA (PR #79569)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 26 02:25:45 PST 2024
================
@@ -420,6 +420,11 @@ class TargetMachine {
virtual unsigned getAddressSpaceForPseudoSourceKind(unsigned Kind) const {
return 0;
}
+
+ /// True if target has some form of pointer arithmetic checking.
+ /// Helps identify whether pointer arithmetic semantics should be preserved
+ /// for passes such as instruction selection.
+ virtual bool isPtrArithmeticChecked(const Function &F) const { return false; }
----------------
arsenm wrote:
Don't see why this needs to be in TargetMachine. It seems to only depend on the subtarget, so can go directly there?
https://github.com/llvm/llvm-project/pull/79569
More information about the llvm-commits
mailing list