GetProgramCounter(ISASI)
Function Usage
Obtains the pointer to the program counter, which is used to record the current program execution position.
Prototype
1 | __aicore__ inline int64_t GetProgramCounter() |
Parameters
None
Returns
Pointer to the program counter of the int64 type.
Availability
Constraints
None
Example
1 | int64_t pc = AscendC::GetProgramCounter(); |
Parent topic: System Variable Access