[llvm] [AMDGPU][RFC] Combine asm and disasm tests. (PR #90214)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 00:45:49 PDT 2024
================
@@ -541,11 +543,13 @@ int main(int argc, char **argv) {
std::unique_ptr<MCAsmBackend> MAB(
TheTarget->createMCAsmBackend(*STI, *MRI, MCOptions));
auto FOut = std::make_unique<formatted_raw_ostream>(*OS);
- Str.reset(
- TheTarget->createAsmStreamer(Ctx, std::move(FOut), /*asmverbose*/ true,
- /*useDwarfDirectory*/ true, IP,
- std::move(CE), std::move(MAB), ShowInst));
-
+ Str.reset(FileType == OFT_HexFile
+ ? TheTarget->createHexStreamer(Ctx, std::move(FOut), IP,
+ std::move(CE), std::move(MAB))
+ : TheTarget->createAsmStreamer(
+ Ctx, std::move(FOut), /*asmverbose*/ true,
+ /*useDwarfDirectory*/ true, IP, std::move(CE),
----------------
arsenm wrote:
```suggestion
Ctx, std::move(FOut), /*asmverbose=*/ true,
/*useDwarfDirectory=*/ true, IP, std::move(CE),
```
https://github.com/llvm/llvm-project/pull/90214
More information about the llvm-commits
mailing list