[LLVMdev] TLI vs. TTI

Matt Arsenault arsenm2 at gmail.com
Fri Jul 18 11:15:14 PDT 2014


Hi,

I noticed many functions in the TargetTransformInfo interface are duplicates of those already in TargetLowering (e.g. isTruncateFree). Is the expectation really that targets will reimplement the same functions twice? AArch64’s TTI uses some TLI calls in some of its implementations, but why doesn’t the base TargetTransformInfo call the TargetLowering versions by default?

- Matt



More information about the llvm-dev mailing list