[PATCH] D123800: [BPF] handle opaque-pointer for __builtin_preserve_enum_value

Alexei Starovoitov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 09:17:36 PDT 2022


ast accepted this revision.
ast added a comment.
This revision is now accepted and ready to land.

The fix to prevent the crash looks good, but what should be the expected codegen for a global variable?
CO-RE needs a constant.
Are we assuming that the global data will be inited with some constant and a later pass will propagate it further into __builtin_preserve,
so at the end it will become a constant?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123800



More information about the llvm-commits mailing list