[PATCH] D76525: Expose cache line size in __builtin_get_cpu_cache_line_size

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 20 23:57:44 PDT 2020


craig.topper added a comment.

What should the behavior of the builtin be if the calling function has its own target cpu like __attribute__((target("arch=sandybridge"))) and that CPU has a different size than the CPU that was passed on the command line?



================
Comment at: clang/include/clang/Basic/Builtins.def:1483
 BUILTIN(__builtin_preserve_access_index, "v.", "t")
+BUILTIN(__builtin_get_cpu_cache_line_size, "z", "nctu")
 
----------------
Can this be "zv" and drop the "tu" from the second string?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76525





More information about the cfe-commits mailing list