Lines Matching refs:UnsafeStackPtr
117 Value *UnsafeStackPtr = nullptr; member in __anon5b1420ea0111::SafeStack
176 void moveDynamicAllocasToUnsafeStack(Function &F, Value *UnsafeStackPtr,
369 auto UnsafeStackPtr = in getOrCreateUnsafeStackPtr() local
374 if (!UnsafeStackPtr) { in getOrCreateUnsafeStackPtr()
381 UnsafeStackPtr = new GlobalVariable( in getOrCreateUnsafeStackPtr()
386 if (UnsafeStackPtr->getValueType() != StackPtrTy) in getOrCreateUnsafeStackPtr()
388 if (UseTLS != UnsafeStackPtr->isThreadLocal()) in getOrCreateUnsafeStackPtr()
392 return UnsafeStackPtr; in getOrCreateUnsafeStackPtr()
484 IRB.CreateStore(CurrentTop, UnsafeStackPtr); in createStackRestorePoints()
667 IRB.CreateStore(StaticTop, UnsafeStackPtr); in moveStaticAllocasToUnsafeStack()
672 Function &F, Value *UnsafeStackPtr, AllocaInst *DynamicTop, in moveDynamicAllocasToUnsafeStack() argument
688 Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(UnsafeStackPtr), IntPtrTy); in moveDynamicAllocasToUnsafeStack()
702 IRB.CreateStore(NewTop, UnsafeStackPtr); in moveDynamicAllocasToUnsafeStack()
725 Instruction *LI = IRB.CreateLoad(UnsafeStackPtr); in moveDynamicAllocasToUnsafeStack()
731 Instruction *SI = IRB.CreateStore(II->getArgOperand(0), UnsafeStackPtr); in moveDynamicAllocasToUnsafeStack()
789 UnsafeStackPtr = getOrCreateUnsafeStackPtr(IRB, F); in runOnFunction()
794 IRB.CreateLoad(UnsafeStackPtr, false, "unsafe_stack_ptr"); in runOnFunction()
828 moveDynamicAllocasToUnsafeStack(F, UnsafeStackPtr, DynamicTop, in runOnFunction()
834 IRB.CreateStore(BasePointer, UnsafeStackPtr); in runOnFunction()