See bug 39331: https://bugs.llvm.org/show_bug.cgi?id=39331
Details
Details
Diff Detail
Diff Detail
Event Timeline
| lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp | ||
|---|---|---|
| 946 | Why can't you just write to O directly without the intermediate string? | |
| lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp | ||
|---|---|---|
| 946 | The last comma in the list of modifiers should not be emitted, otherwise we get something like this: gpr_idx(SRC1,) I found no simpler logic to handle this problem. Any ideas? | |
| lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp | ||
|---|---|---|
| 946 | Something like bool Comma = false;
for (unsigne Test: {src0, src1...}) {
if (!(Val & Test)
continue
if (Comma)
OS << ',';
OS << srcName(Test);
Comma = true;
} | |
Why can't you just write to O directly without the intermediate string?