[PATCH] D120585: make TargetMachine visible from TargetTransformInfo
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 25 18:39:57 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:244
explicit BasicTTIImplBase(const TargetMachine *TM, const DataLayout &DL)
- : BaseT(DL) {}
+ : BaseT(TM, DL) {}
virtual ~BasicTTIImplBase() = default;
----------------
Doesn't BasicTTIImpl already have access to TargetMachine via getTLI()->getTargetMachine()? See the implementation of isNoopAddrSpaceCast further down this file.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120585/new/
https://reviews.llvm.org/D120585
More information about the llvm-commits
mailing list