For example, in OpenMP offload codegen tests, global variables like
.offload_maptypes* are much easier to read in hex.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Event Timeline
Comment Actions
I don't understand what we do before, and how this work, is [[# special in lit? Also, why i32/64 only, that seems arbitrary, no?
Comment Actions
Maybe part of the confusion is that --global-hex-value-regex does not change how the value is expected to appear in LLVM IR: decimal is still expected. It only changes how the value is represented in the FileCheck directive: hex is the representation. The only point is to make the FileCheck directives more readable because, at least in my OpenMP use case, we're dealing with flags.
is [[# special in lit?
No, it starts a FileCheck numeric.
Also, why i32/64 only, that seems arbitrary, no?
Good point. I suppose it should be any integer. I'll work on that.
Thanks for the reviews.