Previously they were defined as a 2D char array in a header file. This
is kind of overkill -- we can let the linker lay out these strings
however it pleases. While we're at it, we might as well just inline
these constants where they're used, as each of them is used only once.
Details
Diff Detail
- Build Status
Buildable 2146 Build 2146: arc lint + arc unit
Event Timeline
llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXBaseInfo.cpp | ||
---|---|---|
14 ↗ | (On Diff #80966) | Do we really need a separate file for this? Why not just put it into NVPTXUtilities.cpp where it's used. For all practical purposes we can even make it static there as there are no other users. |
Sure, let's just get rid of these constants altogether. Simple is better than complex.
Nice!
llvm/lib/Target/NVPTX/NVPTXUtilities.cpp | ||
---|---|---|
275–276 | if (findOneNVVMAnnotation()) ... ? Here and in getAlign() below? |
llvm/lib/Target/NVPTX/NVPTXUtilities.cpp | ||
---|---|---|
275–276 | Ugh, I accidentally merged two patches, the one moving this file into namespace llvm and the other getting rid of the constants. I guess what's done is done. I'll send another patch for the retval thing, though, as this is already bigger than I would like. |
if (findOneNVVMAnnotation()) ... ? Here and in getAlign() below?