[PATCH] D142569: [OpenMP] Introduce kernel environment

Shilei Tian via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 1 15:14:29 PDT 2023


tianshilei1992 added inline comments.


================
Comment at: llvm/test/Transforms/OpenMP/always_inline_device.ll:11
 
-; Function Attrs: norecurse nounwind
+ at kernel_environment = local_unnamed_addr constant %struct.KernelEnvironmentTy { %struct.ConfigurationEnvironmentTy { i8 1, i8 0, i8 1 }, ptr @1, ptr null }
+
----------------
@arsenm Does AMDGPU support a global struct with constant initializer? I currently encountered an error that, the generated IR has correct initializer, but when I read from the global struct from the image (ELF), the corresponding memory looks pretty random. I just need one of the first three `i8` values.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142569



More information about the cfe-commits mailing list