IR for KSConstantExpression class.
More...
Go to the source code of this file.
|
| struct KSConstantExpression * | KEAllocateBooleanExpression (CNBoolean val, struct KELineInfo *linfo, struct CNResource *resource) |
| | Allocate boolean constant expression. More...
|
| |
| struct KSConstantExpression * | KEAllocateSignedIntegerExpression (int64_t val, struct KELineInfo *linfo, struct CNResource *resource) |
| | Allocate signed integer constant expression. More...
|
| |
| struct KSConstantExpression * | KEAllocateUnsignedIntegerExpression (uint64_t val, struct KELineInfo *linfo, struct CNResource *resource) |
| | Allocate unsigned integer constant expression. More...
|
| |
| struct KSConstantExpression * | KEAllocateFloatExpression (double val, struct KELineInfo *linfo, struct CNResource *resource) |
| | Allocate floating point value expression. More...
|
| |
| struct KSConstantExpression * | KEAllocateStringExpression (struct CNString *val, struct KELineInfo *linfo, struct CNResource *resource) |
| | Allocate boolean string expression. More...
|
| |
| CNBoolean | KSIsConstantExpression (const struct KSExpression *src) |
| | Check the expression class. More...
|
| |
IR for KSConstantExpression class.
- Copyright
- Copyright (C) 2014 Steel Wheels Project
| struct KSConstantExpression* KEAllocateBooleanExpression |
( |
CNBoolean |
val, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate boolean constant expression.
- Returns
- Allocated expression
- Parameters
-
| val | Source value |
| linfo | Line information of the expression |
| resource | Resource to allocate the expression |
| struct KSConstantExpression* KEAllocateFloatExpression |
( |
double |
val, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate floating point value expression.
- Returns
- Allocated expression
- Parameters
-
| val | Source value |
| linfo | Line information of the expression |
| resource | Resource to allocate the expression |
| struct KSConstantExpression* KEAllocateSignedIntegerExpression |
( |
int64_t |
val, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate signed integer constant expression.
- Returns
- Allocated expression
- Parameters
-
| val | Source value |
| linfo | Line information of the expression |
| resource | Resource to allocate the expression |
| struct KSConstantExpression* KEAllocateStringExpression |
( |
struct CNString * |
val, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate boolean string expression.
- Returns
- Allocated expression
- Parameters
-
| val | Source value |
| linfo | Line information of the expression |
| resource | Resource to allocate the expression |
| struct KSConstantExpression* KEAllocateUnsignedIntegerExpression |
( |
uint64_t |
val, |
|
|
struct KELineInfo * |
linfo, |
|
|
struct CNResource * |
resource |
|
) |
| |
Allocate unsigned integer constant expression.
- Returns
- Allocated expression
- Parameters
-
| val | Source value |
| linfo | Line information of the expression |
| resource | Resource to allocate the expression |
| CNBoolean KSIsConstantExpression |
( |
const struct KSExpression * |
src | ) |
|
Check the expression class.
- Return values
-
| True | The source expression is an object of the class |
| False | The source expression is NOT an object of the class |
- Parameters
-