Functions for creating symbols and constant values.
More...
Functions for creating symbols and constant values.
◆ __false__()
Creates a boolean false condition.
- Returns
- False as a Condition
◆ __nullptr__()
| Symbol sdfg::symbolic::__nullptr__ |
( |
| ) |
|
Creates a special null pointer symbol.
- Returns
- A Symbol representing the null pointer
In the symbolic system, pointers are interpreted as integers without dereferencing. This function provides a special symbol to represent null pointer values.
◆ __true__()
Creates a boolean true condition.
- Returns
- True as a Condition
◆ integer()
| Integer sdfg::symbolic::integer |
( |
int64_t | value | ) |
|
Creates an integer constant.
- Parameters
-
- Returns
- An Integer constant expression
Integer integer(int64_t value)
Creates an integer constant.
◆ is_nullptr() [1/2]
| bool sdfg::symbolic::is_nullptr |
( |
const std::string & | name | ) |
|
Same as is_nullptr(symbol(name)) without constructing a symbol.
◆ is_nullptr() [2/2]
| bool sdfg::symbolic::is_nullptr |
( |
const Symbol | symbol | ) |
|
Checks if a symbol is the null pointer.
- Parameters
-
| symbol | The symbol to check |
- Returns
- true if the symbol represents a null pointer
◆ is_nv()
| bool sdfg::symbolic::is_nv |
( |
const Symbol | symbol | ) |
|
Checks if a symbol is an NVIDIA GPU built-in variable.
- Parameters
-
| symbol | The symbol to check |
- Returns
- true if the symbol is threadIdx, blockIdx, blockDim, or gridDim in any dimension
NVIDIA GPU built-in variables include threadIdx_{x,y,z}, blockIdx_{x,y,z}, blockDim_{x,y,z}, and gridDim_{x,y,z}.
◆ is_pointer()
| bool sdfg::symbolic::is_pointer |
( |
const Symbol | symbol | ) |
|
Checks if a symbol represents a pointer.
- Parameters
-
| symbol | The symbol to check |
- Returns
- true if the symbol is a pointer (currently equivalent to is_nullptr)
◆ one()
Creates the integer constant 1.
- Returns
- One as an Integer expression
◆ symbol()
| Symbol sdfg::symbolic::symbol |
( |
const std::string & | name | ) |
|
Creates a symbolic variable with the given name.
- Parameters
-
| name | The name of the symbol (must not be "null", "NULL", or "nullptr") |
- Returns
- A new Symbol with the specified name
- Exceptions
-
Symbol symbol(const std::string &name)
Creates a symbolic variable with the given name.
◆ zero()
Creates the integer constant 0.
- Returns
- Zero as an Integer expression