Displaying 1 result from an estimated 1 matches for "op1_transform".
Did you mean:
op1_transformed
2013 Jul 16
0
[LLVMdev] [PATCH 2/2] X86: infer immediate forms of bit-test instructions
...onstantExpr>(Op1.getImm())->getValue();
+ int64_t Given_mem = cast<MCConstantExpr>(Op2.Mem.Disp)->getValue();
+
+ static_cast<X86Operand*>(Operands[0])->setTokenValue(StringRef(Name.str() + "l"));
+
+ SMLoc Loc = Op1.getEndLoc();
+ const MCExpr *Op1_transformed = MCConstantExpr::Create(Given_imm % 32, getContext());
+ Operands.begin()[1] = X86Operand::CreateImm(Op1_transformed, Loc, Loc);
+
+ Loc = Op2.getEndLoc();
+ const MCExpr *Op2_transformed = MCConstantExpr::Create(Given_mem + 4 * (Given_imm / 32),
+ getContext());
+...