[llvm] [AArch64] Add CodeGen support for FEAT_CPA (PR #105669)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 07:36:45 PDT 2024
================
@@ -434,6 +434,11 @@ class TargetMachine {
function_ref<void(std::unique_ptr<Module> MPart)> ModuleCallback) {
return false;
}
+
+ /// True if target has some particular form of dealing with pointer arithmetic
+ /// semantics. False if pointer arithmetic should not be preserved for passes
+ /// such as instruction selection, and can fallback to regular arithmetic.
+ virtual bool shouldPreservePtrArith(const Function &F) const { return false; }
----------------
arsenm wrote:
I'd expect this to be a property of individual instructions?
https://github.com/llvm/llvm-project/pull/105669
More information about the llvm-commits
mailing list