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
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
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. |
Comment Actions
Sure, let's just get rid of these constants altogether. Simple is better than complex.
Comment Actions
Nice!
llvm/lib/Target/NVPTX/NVPTXUtilities.cpp | ||
---|---|---|
270–271 ↗ | (On Diff #81474) | if (findOneNVVMAnnotation()) ... ? Here and in getAlign() below? |
llvm/lib/Target/NVPTX/NVPTXUtilities.cpp | ||
---|---|---|
270–271 ↗ | (On Diff #81474) | 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. |