[llvm] [KeyInstr] Add fields to DILocation behind compile time flag (PR #133477)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu May 1 13:12:37 PDT 2025


================
@@ -2235,44 +2235,70 @@ class DISubprogram : public DILocalScope {
 class DILocation : public MDNode {
   friend class LLVMContextImpl;
   friend class MDNode;
+#ifdef EXPERIMENTAL_KEY_INSTRUCTIONS
+  uint64_t AtomGroup : 61;
+  uint8_t AtomRank : 3;
----------------
nikic wrote:

You need to use uint64_t for both to get actual bit packing with msvc (https://c.godbolt.org/z/1f556c1zb).

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


More information about the llvm-commits mailing list