Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
ELF/Arch/AMDGPU.cpp | ||
---|---|---|
47 ↗ | (On Diff #119699) | Is it worth avoiding checking the first element since it has already been inspected. For example: for (const auto &F : ArrayRef(ObjectFiles).slice(1)) { |
ELF/Arch/AMDGPU.cpp | ||
---|---|---|
47 ↗ | (On Diff #119699) | Please add a comment saying that this loop is to verify that all input files have the same e_flags. const auto -> InputFile * as we do not use auto unless its type is apparent. FirstEFlags -> Ret because we usually prefer short variable names. |
48 ↗ | (On Diff #119699) | Can you just remove this temporary variable and directly use the value? |
How did you create Inputs/amdgpu-kernel-2.o? We generally want to avoid checking in binary files, so if it is created by llvm-mc or something, we'd like to check in the source file instead of the binary file.
It was created using "llc -filetype=obj...". Unfortunately we do not have an assembler for that architecture so cannot use llvm-mc.
We are also working on more changes to e_flags (related to architectures). Once we agree on those and add support to llvm, I was planning to replace this binary file with the source file (few weeks away). Would that be ok?
Yes, when you complete your other changes, please replace the file. LGTM
ELF/Arch/AMDGPU.cpp | ||
---|---|---|
51 ↗ | (On Diff #120096) | toString(F) is better than F->getName() because an archive file name is included in the former output if F was pulled out from an archive. |