[PATCH] D18242: [TableGen] AsmMatcher: support for default values for optional operands
Sam Kolton via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 06:50:39 PDT 2016
SamWot created this revision.
SamWot added reviewers: tstellarAMD, ab, craig.topper.
SamWot added subscribers: llvm-commits, nhaustov, arsenm.
Herald added subscribers: dsanders, jyknight.
This change allows to specify "DefaultMethod" for optional operand (IsOptional = 1) in AsmOperandClass that return default value for operand. This is used in convertToMCInst to set default values in MCInst.
Previously if you wanted to set default value for operand you had to create custom converter method. With this change it is possible to use standard converters even when optional operands presented.
http://reviews.llvm.org/D18242
Files:
include/llvm/Target/Target.td
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
lib/Target/AMDGPU/SIInstrFormats.td
lib/Target/AMDGPU/SIInstrInfo.td
lib/Target/AMDGPU/VIInstrFormats.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
lib/Target/X86/AsmParser/X86AsmParser.cpp
utils/TableGen/AsmMatcherEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18242.50928.patch
Type: text/x-patch
Size: 29716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160317/7a9efc54/attachment.bin>
More information about the llvm-commits
mailing list