[LLVMdev] Tablegen: How to define an instruction that reads and writes the same register

Tom Stellard thomas.stellard at amd.com
Thu Jan 19 18:07:18 PST 2012


Hi,

Is it possible to define an Instruction with tablegen that reads and
writes the same register?  For example, an increment instruction that
reads a value from a register, adds one to it and then writes the result
back to the same register.

Thanks,
Tom





More information about the llvm-dev mailing list