[clang] [llvm] [BPF] rename 'arena' to 'address_space' (PR #85161)

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 13 18:14:49 PDT 2024


================
@@ -517,13 +517,13 @@ bool BPFCheckAndAdjustIR::insertASpaceCasts(Module &M) {
     Changed |= !CastsCache.empty();
   }
   // Merge all globals within same address space into single
-  // .arena.<addr space no> section
+  // .address_space.<addr space no> section
   for (GlobalVariable &G : M.globals()) {
     if (G.getAddressSpace() == 0 || G.hasSection())
       continue;
     SmallString<16> SecName;
     raw_svector_ostream OS(SecName);
-    OS << ".arena." << G.getAddressSpace();
+    OS << ".address_space." << G.getAddressSpace();
----------------
4ast wrote:

since instruction is called "addr_space" let's name the section name the same ".addr_space." ?
and __BPF_FEATURE_ADDR_SPACE_CAST too ?

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


More information about the cfe-commits mailing list