/** * Make IntSet for the interference graph sets. Public because * InterferenceGraph is in another package. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ public static IntSet makeInterferenceSet(int countRegs) { return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); }
/** * Make IntSet for the dominance-frontier sets. * * @param szBlocks {@code >=0;} count of basic blocks in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeDomFrontSet(int szBlocks) { return szBlocks <= DOMFRONT_SET_THRESHOLD_SIZE ? new BitIntSet(szBlocks) : new ListIntSet(); }
/** * Make IntSet for the dominance-frontier sets. * * @param szBlocks {@code >=0;} count of basic blocks in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeDomFrontSet(int szBlocks) { return szBlocks <= DOMFRONT_SET_THRESHOLD_SIZE ? new BitIntSet(szBlocks) : new ListIntSet(); }
/** * Make IntSet for the interference graph sets. Public because * InterferenceGraph is in another package. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ public static IntSet makeInterferenceSet(int countRegs) { return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); }
/** * Make IntSet for register live in/out sets. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeLivenessSet(int countRegs) { return countRegs <= LIVENESS_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); } }
/** * Make IntSet for register live in/out sets. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeLivenessSet(int countRegs) { return countRegs <= LIVENESS_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); } }
/** * Make IntSet for the interference graph sets. Public because * InterferenceGraph is in another package. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ public static IntSet makeInterferenceSet(int countRegs) { return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); }
/** * Make IntSet for register live in/out sets. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeLivenessSet(int countRegs) { return countRegs <= LIVENESS_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); } }
/** * Make IntSet for register live in/out sets. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeLivenessSet(int countRegs) { return countRegs <= LIVENESS_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); } }
/** * Make IntSet for register live in/out sets. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeLivenessSet(int countRegs) { return countRegs <= LIVENESS_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); } }
/** * Make IntSet for the dominance-frontier sets. * * @param szBlocks {@code >=0;} count of basic blocks in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeDomFrontSet(int szBlocks) { return szBlocks <= DOMFRONT_SET_THRESHOLD_SIZE ? new BitIntSet(szBlocks) : new ListIntSet(); }
/** * Make IntSet for the interference graph sets. Public because * InterferenceGraph is in another package. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ public static IntSet makeInterferenceSet(int countRegs) { return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); }
/** * Make IntSet for register live in/out sets. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeLivenessSet(int countRegs) { return countRegs <= LIVENESS_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); } }
/** * Make IntSet for the dominance-frontier sets. * * @param szBlocks {@code >=0;} count of basic blocks in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeDomFrontSet(int szBlocks) { return szBlocks <= DOMFRONT_SET_THRESHOLD_SIZE ? new BitIntSet(szBlocks) : new ListIntSet(); }
/** * Make IntSet for the interference graph sets. Public because * InterferenceGraph is in another package. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ public static IntSet makeInterferenceSet(int countRegs) { return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); }
/** * Make IntSet for the interference graph sets. Public because * InterferenceGraph is in another package. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ public static IntSet makeInterferenceSet(int countRegs) { return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); }
/** * Make IntSet for register live in/out sets. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeLivenessSet(int countRegs) { return countRegs <= LIVENESS_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); } }
/** * Make IntSet for the dominance-frontier sets. * * @param szBlocks {@code >=0;} count of basic blocks in method * @return {@code non-null;} appropriate set */ /*package*/ static IntSet makeDomFrontSet(int szBlocks) { return szBlocks <= DOMFRONT_SET_THRESHOLD_SIZE ? new BitIntSet(szBlocks) : new ListIntSet(); }
/** * Make IntSet for the interference graph sets. Public because * InterferenceGraph is in another package. * * @param countRegs {@code >=0;} count of SSA registers used in method * @return {@code non-null;} appropriate set */ public static IntSet makeInterferenceSet(int countRegs) { return countRegs <= INTERFERENCE_SET_THRESHOLD_SIZE ? new BitIntSet(countRegs) : new ListIntSet(); }
public void test_toString() { BitIntSet set = new BitIntSet(32); assertEquals(set.toString(), "{}"); set.add(1); assertEquals(set.toString(), "{1}"); set.add(2); assertEquals(set.toString(), "{1, 2}"); } }