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 2144 Build 2144: arc lint + arc unit
Event Timeline
llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXBaseInfo.cpp | ||
---|---|---|
14 | 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 | ||
---|---|---|
270–271 | if (findOneNVVMAnnotation()) ... ? Here and in getAlign() below? |
llvm/lib/Target/NVPTX/NVPTXUtilities.cpp | ||
---|---|---|
270–271 | 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?