[LLVMdev] NumDefs's MCInstrDesc and sub-operands
Francois Pichet
pichet2000 at gmail.com
Thu Feb 20 10:22:34 PST 2014
Hi,
I defined an instruction like this:
def LDM : OpusInstSTMLDM<0x27, 6, (outs REG_RANGE:$regRange),
(ins MEM_LDM:$addr),
"ldm $regRange, $addr", []>, Requires<[HasOpus3Enc]>;
REG_RANGE will be:
def REG_RANGE : Operand<i32> {
let MIOperandInfo = (ops GR32, GR32);
...
}
Now I was expecting the NumDefs of LDM's MCInstrDesc to be 2. Yet it is 1.
This cause -verify-machineinstrs pass to fail.
Basically it seems like tablegen doesn't look take into account
sub-operands to calculate NumDefs's MCInstrDesc.
Is this a bug or by design?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140220/344eac3e/attachment.html>
More information about the llvm-dev
mailing list