search for: given_mem

Displaying 1 result from an estimated 1 matches for "given_mem".

Did you mean: given_imm
2013 Jul 16
0
[LLVMdev] [PATCH 2/2] X86: infer immediate forms of bit-test instructions
...d &Op2 = *(X86Operand*)Operands.begin()[2]; + + if (Op1.isImm() && isa<MCConstantExpr>(Op1.getImm()) && + Op2.isMem() && isa<MCConstantExpr>(Op2.Mem.Disp)) { + int64_t Given_imm = cast<MCConstantExpr>(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())...