Commit 65df61f
committed
[AMDGPU][AsmParser] Simplify getting source locations of operands.
Remember indexes of MCOperands in MCParsedAsmOperands as we add
them to instructions. Then use the indexes to find locations by
known MCOperands indexes.
Happens to fix some reported locations in tests. NFCI otherwise.
getImmLoc() is to be eliminated as well; there's enough work for
another patch.1 parent b8eaceb commit 65df61f
File tree
6 files changed
+158
-241
lines changed- llvm
- lib/Target/AMDGPU/AsmParser
- test/MC/AMDGPU
6 files changed
+158
-241
lines changed
0 commit comments