search for: immval

Displaying 3 results from an estimated 3 matches for "immval".

2009 Jan 23
1
[LLVMdev] How to determine Immediate Type in MachineOperand class?
Hi,    I would like to get the type of immediate value (integer) from MachineOperand Class. Currently the immediate value is being represented as int64_t. int64_t ImmVal; // For MO_Immediate.   Is it possible to find out whether the immediate value is int8, 16, 32 etc?   Note: My target has a virtual Instruction set.   Thanks in advance, -Sanjay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/piper...
2012 Mar 30
1
[LLVMdev] load instruction memory operands value null
Hi,   For a custom target, there is a pass to perform memory dependence analysis, where, i need to get memory pointer for "load instruction". I want to check the pointer alias behavior. I am getting this by considering the memoperands for the load instruction.   For "load instruction", Machine Instruction dumps as below:   vr12<def> = LD_Iri %vr2<kill>, 0;
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...ningPtr<ARMOperand> &Op) { case AsmToken::Hash: // #42 -> immediate. // TODO: ":lower16:" and ":upper16:" modifiers after # before immediate - S = Parser.getTok().getLoc(); - Parser.Lex(); + S = getTok().getLoc(); + Lex(); const MCExpr *ImmVal; - if (getParser().ParseExpression(ImmVal)) + if (ParseExpression(ImmVal)) return true; - E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); + E = SMLoc::getFromPointer(getTok().getLoc().getPointer() - 1); ARMOperand::CreateImm(Op, ImmVal, S, E); retu...