search for: getdeadregstate

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

2009 May 13
2
[LLVMdev] RFC: Code Gen Change!
...er functions to help make this less of a pain: inline unsigned getDefRegState(bool B) { return B ? RegState::Define : 0; } inline unsigned getImplRegState(bool B) { return B ? RegState::Implicit : 0; } inline unsigned getKillRegState(bool B) { return B ? RegState::Kill : 0; } inline unsigned getDeadRegState(bool B) { return B ? RegState::Dead : 0; } So you can use them like this: BuildMI(...).addReg(Reg, getKillRegState(isKill); My hope is that this is a cleaner way of building these machine instructions. Comments and suggestions are welcome. -bw