[llvm-dev] MC Assembler / tablegen: actually parsing variable_ops (original) (raw)
Wouter van Oortmerssen via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 3 17:32:32 PST 2018
- Previous message: [llvm-dev] error: instruction requires: AVX-512 ISA
- Next message: [llvm-dev] MC Assembler / tablegen: actually parsing variable_ops
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
variable_ops is used in the tablegen defs for many targets to denote instructions that a variable number of inputs, but it seems that there aren't any targets for which this results in variable elements in the instruction encoding (and thus in assembler parsing), since the tablegen generated assembly matcher ($(Target)GenAsmMatcher.inc) simply assumes that variable_ops are not to be parsed (match table: Convert_NoOperands).
Now I understand that a variable length instruction is a weird concept for most CPUs, but we need it for at least one instruction in WebAssembly. We can probably hack around it in the WebAssemblyAsmParser, but I wonder if there's something I am not understanding about variable_ops and the generated asm matcher that might make for a cleaner solution.
The instruction in question: https://github.com/llvm-mirror/llvm/blob/master/lib/Target/WebAssembly/WebAssemblyInstrControl.td#L45 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181203/49ed7805/attachment.html>
- Previous message: [llvm-dev] error: instruction requires: AVX-512 ISA
- Next message: [llvm-dev] MC Assembler / tablegen: actually parsing variable_ops
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]