- added is_Filter()
[libfirm] / firmjni / testprograms / IfElseExample.java
index b0e4dfb..3378136 100644 (file)
@@ -76,7 +76,8 @@ class IfElseExample {
        int c2 = Ircons.newConst(Irmode.getModeIs(),
                                 Tv.newTarvalFromLong (2, Irmode.getModeIs()));
        int cmpGt = Ircons.newProj(Ircons.newCmp(Ircons.getValue(0, Irmode.getModeIs()), c2),
-                                  Irmode.getModeb(), Irnode.Gt);
+                                  Irmode.getModeb(), Irnode.pn_Cmp_Gt);
+
        int x = Ircons.newCond (cmpGt);
        int f = Ircons.newProj (x, Irmode.getModeX(), 0); /* if condition is false */
        int t = Ircons.newProj (x, Irmode.getModeX(), 1); /* if condition is true */
@@ -119,8 +120,8 @@ class IfElseExample {
        /* Now we can mature the end block as all it's predecessors are known. */
        Ircons.matureImmBlock (Irgraph.getIrgEndBlock(irg));
 
-       Irvrfy.irgVrfy(irg);
-       Ircons.finalizeCons (irg);
+       Irvrfy.irgVerify(irg, Irvrfy.VRFY_NORMAL);
+       Irgraph.setIrgPhaseState (irg, Irgraph.phase_high);
 
        System.out.println("Done building the graph.  Optimizing it.");
        Irgopt.localOptimizeGraph(irg);