Class IRConstants
java.lang.Object
org.ek9lang.compiler.phase7.support.IRConstants
Rather than smatter the Java code with 'stringy' constants for the IR, they are defined here.
Basically we need to accept that there are some 'types' and specific method names that the
backend will need to support.
For example, we will need to 'expect' that the concept of a 'boolean' exists and when working with ASM(JVM) this will be a Java boolean, When working with LLVM-C++ it will be a 'bool'/i8.
But in the EK9 IR we will need to refer to these 'primitive' types. For example, when branching, or loading int main(int argc, char *argv[]).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
-
Field Details
-
THIS
- See Also:
-
SUPER
- See Also:
-
ENTRY_LABEL
- See Also:
-
PARAM_SCOPE
- See Also:
-
RETURN_SCOPE
- See Also:
-
GENERAL_SCOPE
- See Also:
-
IF_SCOPE
- See Also:
-
ELSE_SCOPE
- See Also:
-
FOR_SCOPE
- See Also:
-
DO_SCOPE
- See Also:
-
WHILE_SCOPE
- See Also:
-
INIT_METHOD
- See Also:
-
CALL_METHOD
- See Also:
-
C_INIT_METHOD
- See Also:
-
I_INIT_METHOD
- See Also:
-
TRUE_METHOD
- See Also:
-
FALSE_METHOD
- See Also:
-
OF_TRUE_METHOD
- See Also:
-
OF_FALSE_METHOD
- See Also:
-
IS_SET
- See Also:
-
VOID
- See Also:
-
BOOLEAN
- See Also:
-
RETURN_VARIABLE
- See Also:
-
TEMP_C_INIT
- See Also:
-
TEMP_I_INIT
- See Also:
-
TEMP_SUPER_INIT
- See Also:
-
PUBLIC
- See Also:
-
PRIVATE
- See Also:
-