summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorNikolay Haustov <Nikolay.Haustov@amd.com>2016-02-25 10:58:54 +0000
committerNikolay Haustov <Nikolay.Haustov@amd.com>2016-02-25 10:58:54 +0000
commit2e4c72977c9bf06a8dbe7688d8cb3b66c8912037 (patch)
treed45e043698f611194ee6ecacc6b18fe7ae137b11 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent1f4cea0467b793ff9867766de529cb4651d4de02 (diff)
downloadbcm5719-llvm-2e4c72977c9bf06a8dbe7688d8cb3b66c8912037.tar.gz
bcm5719-llvm-2e4c72977c9bf06a8dbe7688d8cb3b66c8912037.zip
[AMDGPU] Assembler: Simplify handling of optional operands
Resubmit with index problem fixed. Verified with valgrind. Prepare to support DPP encodings. For DPP encodings, we want row_mask/bank_mask/bound_ctrl to be optional operands. However this means that when parsing instruction which has no mnemonic prefix, we cannot add both default values for VOP3 and for DPP optional operands to OperandVector - neither instructions would match. So add default values for optional operands to MCInst during conversion instead. Mark more operands as IsOptional = 1 in .td files. Do not add default values for optional operands to OperandVector in AMDGPUAsmParser. Add default values for optional operands during conversion using new helper addOptionalImmOperand. Change to cvtVOP3_2_mod to check instruction flag instead of presence of modifiers. In the future, cvtVOP3* functions can be combined into one. Separate cvtFlat and cvtFlatAtomic. Fix CNDMASK_B32 definition to have no modifiers. Review: http://reviews.llvm.org/D17445 llvm-svn: 261856
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud