Class SemanticHelper
java.lang.Object
net.covers1624.coffeegrinder.bytecode.SemanticHelper
Created by covers1624 on 19/4/21.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumBitSet<InstructionFlag> combineBranches(EnumBitSet<InstructionFlag> trueFlags, EnumBitSet<InstructionFlag> falseFlags) Combines the flags of a branch.
-
Constructor Details
-
SemanticHelper
public SemanticHelper()
-
-
Method Details
-
combineBranches
public static EnumBitSet<InstructionFlag> combineBranches(EnumBitSet<InstructionFlag> trueFlags, EnumBitSet<InstructionFlag> falseFlags) Combines the flags of a branch.The returned flags are effectively or'd together, but will only contain
InstructionFlag.END_POINT_UNREACHABLEif both branches contain that flag.- Parameters:
trueFlags- The True branch flags.falseFlags- The False branch flags.- Returns:
- The combined flags.
-