use of com.oracle.svm.core.graal.llvm.util.LLVMUtils.LLVMStackSlot in project graal by oracle.
the class LLVMGenerator method allocateStackMemory.
@Override
public VirtualStackSlot allocateStackMemory(int sizeInBytes, int alignmentInBytes) {
builder.positionAtStart();
LLVMValueRef alloca = builder.buildArrayAlloca(builder.byteType(), sizeInBytes, alignmentInBytes);
builder.positionAtEnd(getBlockEnd(currentBlock));
return new LLVMStackSlot(alloca);
}
Aggregations