[llvm] [AArch64][SelectionDAG] Add CodeGen support for FEAT_CPA (PR #105669)
Rodolfo Wottrich via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 05:08:52 PST 2025
================
@@ -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; }
----------------
rgwott wrote:
For FEAT_CPA this is a property of the target. Suggestions for improvement are welcome. =)
https://github.com/llvm/llvm-project/pull/105669
More information about the llvm-commits
mailing list