[PATCH] D156928: [Clang][AMDGPU] Fix handling of -mcode-object-version=none arg

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 4 16:05:53 PDT 2023


JonChesterfield added a comment.

Or, the front end could define those objects directly, without importing IR files that define the objects with the content clang used to choose the object file. E.g. instead of the argument daz=off (spelled differently) finding a file called daz.off.ll that defines variable called daz with a value 0, that argument could define that variable. I think @jhuber6 has a partial patch trying to do that.

If we were more ambitious, we could use intrinsics that are folded reliably at O0 instead of magic variables that hopefully get constant folded. That would kill a bunch of O0 bugs.

In general though, splicing magic variables in the front end seems unlikely to be performance critical relative to splicing them in at the start of the backend.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156928



More information about the cfe-commits mailing list