Stack Manipulation Instructions Instructions
3 PTX instructions in this category - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | PTX Version | Summary |
|---|---|---|---|
| alloca | alloca.type ptr, size{, immAlign}; | PTX ISA 7.3 | The alloca instruction dynamically allocates memory on the stack frame of the current function and updates the stack pointer accordingly. |
| stackrestore | stackrestore.type a; | PTX ISA 7.3 | Sets the current stack pointer to source register a. |
| stacksave | stacksave.type d; | PTX ISA 7.3 | Copies the current value of stack pointer into the destination register d. |