Stmt
Statement dataclass
Statement(
*,
args=(),
regions=(),
successors=(),
attributes={},
properties={},
results=(),
result_types=(),
args_slice={},
source=None
)
Bases: IRNode['Block']
Source code in src/kirin/ir/nodes/stmt.py
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
|
detach
detach()
detach the statement from its parent block.
Source code in src/kirin/ir/nodes/stmt.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
|
from_stmt classmethod
from_stmt(
other,
args=None,
regions=None,
successors=None,
attributes=None,
)
Create a similar Statement with new ResultValue
and without attaching to any parent block. This still references to the old successor and regions.
Source code in src/kirin/ir/nodes/stmt.py
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 |
|