search for: getimplregstate

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

2009 May 13
2
[LLVMdev] RFC: Code Gen Change!
...g like: BuildMI(...).addReg(Reg, RegState::Kill); etc. In a lot of cases, an explicit true/false isn't passed into the addReg method. I added some helper 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 t...