[PATCH] D74918: Add method to TargetInfo to get CPU cache line size

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 23 10:55:52 PDT 2020


craig.topper added a comment.

In D74918#1937291 <https://reviews.llvm.org/D74918#1937291>, @lebedev.ri wrote:

> In D74918#1937237 <https://reviews.llvm.org/D74918#1937237>, @zoecarver wrote:
>
> > @lebedev.ri Where should I put this? Could you maybe point me to another LLVM target API that clang uses that I could base this off? Maybe it should go inside the triple or just be a static function?
>
>
> I would have guessed `TargetLoweringInfo`/`TargetTransformInfo`, but i'm not sure if we can access it here without violating layering.


I don't think can be done unless the proposed builtin for this lowered to an llvm intrinsic and was handled completely in llvm CodeGen.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74918/new/

https://reviews.llvm.org/D74918





More information about the cfe-commits mailing list