Displaying 1 result from an estimated 1 matches for "postcheckir".
2015 Dec 14
2
[GlobalISel][RFC] New verifier stages
...t; class MyMachinePass {
>
> public:
> // Returns false on error
> bool preCheckIR(MachineFunction &F) {
> MachineVerifier V;
> V.setSSA(true);
> V.allowsGeneric(false);
> return V.verify(F);
> }
>
> // Returns false on error
> void postCheckIR(MachineFunction &F) {
> MachineVerifier V;
> V.setSSA(true);
> V.allowsGeneric(false);
> V.verify(F);
> }
>
> }
>
> This way:
>
> - the PassManager does not need to know about any “stage” or pass specific stuff, it calls these hooks like it already d...