[llvm] [Asan] Provide TTI hook to provide memory reference infromation of ta… (PR #127753)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 10:43:55 PST 2025


topperc wrote:

> > Technically you can ask for a TargetMachine from the Pass ctor and get TLI from it, but I don't think we have a wrapper Pass for TargetLowering (yet)?
> 
> You use the TargetMachine to get the Subtarget, and query TargetLowering from the subtarget

I don't think middle end passes are allowed to include TargetLowering.h are they? Isn't that why TTI exists?

https://github.com/llvm/llvm-project/pull/127753


More information about the llvm-commits mailing list