Displaying 2 results from an estimated 2 matches for "0b1010".
Did you mean:
0b0010
2015 Nov 26
2
Accessing TableGen defined variable in the cpp code
...he moment that I am parsing the instruction, I would like to
assign a value to "bitpattern" variable!
for example:
->ParseInstruction(...)
if (Mnemonic == "X")
Mnemonic = getLexer().getTok().getString();
if (Mnemonic == "Y")
*** let bitpattern = 0b1010" ** // How can I do this?*
How can I do this? Is it possible?
Cheers,
ES
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151126/354ac081/attachment.html>
2011 Nov 17
0
[LLVMdev] Bug 1388
...ses in the instruction info tablegen files indicate that a two-value operand can't be used where a dag node expects two operands.
// FIXME: should be able to write a pattern for ARMBrcond, but can't use
// a two-value operand where a dag node expects two operands. :(
def Bcc : ABI<0b1010, (outs), (ins br_target:$target),
IIC_Br, "b", "\t$target",
[/*(ARMbrcond bb:$target, imm:$cc, CCR:$ccr)*/]> {
bits<24> target;
let Inst{23-0} = target;
let DecoderMethod = "DecodeBranchImmInstruction";
}
// FIXME:...