search for: tysiz

Displaying 2 results from an estimated 2 matches for "tysiz".

Did you mean: tysize
2010 Apr 17
1
[LLVMdev] Compiling LLVM on SPARC
...ibsupc++/unwind-cxx.h:171: internal compiler error: Abort I checked, and the "Offset" variable at this point in the source file (InstructionCombining.cpp:387), is -23. The offending assert looks like the following: // Handle hosts where % returns negative instead of values [0..TySize). if (Offset < 0) { --FirstIdx; Offset += TySize; fprintf(stderr, "ERROR: %d", Offset); // << endl; assert(Offset >= 0); } Is anyone able to help me, or have been able to successfully compile LLVM + LLVM-GCC on the SPARC platform? If s...
2014 Nov 03
8
[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack
...= *It; + IRB.SetInsertPoint(AI); + + // Compute the new SP value (after AI) + Value *ArraySize = AI->getArraySize(); + if (ArraySize->getType() != IntPtrTy) + ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); + + Type *Ty = AI->getAllocatedType(); + uint64_t TySize = DL->getTypeAllocSize(Ty); + Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); + + Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(UnsafeStackPtr), IntPtrTy); + SP = IRB.CreateSub(SP, Size); + + // Align the SP value to satisfy the AllocaInst, type and stack...