summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
diff options
context:
space:
mode:
authorNikolay Haustov <Nikolay.Haustov@amd.com>2016-02-24 14:22:47 +0000
committerNikolay Haustov <Nikolay.Haustov@amd.com>2016-02-24 14:22:47 +0000
commit4f073ca7faba0ae155ca2d33be53928203bf3f34 (patch)
treea20487b59c3a1cf05d8b2ebaa045d1903f99d430 /llvm/lib/Target/X86
parent577570b4a54d3a87a7e6353dcc50ceac4234bd56 (diff)
downloadbcm5719-llvm-4f073ca7faba0ae155ca2d33be53928203bf3f34.tar.gz
bcm5719-llvm-4f073ca7faba0ae155ca2d33be53928203bf3f34.zip
[AMDGPU] Assembler: Simplify handling of optional operands
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 Reviewers: tstellarAMD llvm-svn: 261742
Diffstat (limited to 'llvm/lib/Target/X86')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud