[LLVMdev] LoadInst result

Tim Northover t.p.northover at gmail.com
Mon Feb 3 02:12:29 PST 2014


Hi Nizam,

> Is there a simple way to check if a given instruction operand (represented
> by Value *) is a virtual register or otherwise? Context: I am creating a
> ModulePass for pointer Analysis.

Values exist before any distinction is made between virtual and
physical registers (they only get introduced after or, in rare cases
at lowering to MachineInstrs). Or did you mean some distinction other
than virtual/physical? What would you expect the Value to be if it's
not a virtual register?

Cheers.

Tim.



More information about the llvm-dev mailing list