[llvm] [TLI] Add isLegalNTStore/Load hook (PR #177936)
Tomer Shafir via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 02:01:08 PST 2026
================
@@ -477,6 +477,16 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
return getTLI()->isLegalAddressingMode(DL, AM, Ty, AddrSpace, I);
}
+ bool isLegalNTStore(Type *DataType, Align Alignment) const override {
+ const DataLayout &DL = this->getDataLayout();
+ return getTLI()->isLegalNTStore(DataType, Alignment, DL);
+ }
+
+ bool isLegalNTLoad(Type *DataType, Align Alignment) const override {
+ const DataLayout &DL = this->getDataLayout();
+ return getTLI()->isLegalNTLoad(DataType, Alignment, DL);
+ }
+
----------------
tomershafir wrote:
makes sense, I think its kind of a leftover bias from before when I tried to call it from a target independent pass. I think it invalidates this PR. Let me close it and open the second one with a static local instead
https://github.com/llvm/llvm-project/pull/177936
More information about the llvm-commits
mailing list