Search in sources :

Example 1 with LLVMStackSlot

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);
}
Also used : LLVMStackSlot(com.oracle.svm.core.graal.llvm.util.LLVMUtils.LLVMStackSlot) LLVMValueRef(com.oracle.svm.shadowed.org.bytedeco.llvm.LLVM.LLVMValueRef)

Aggregations

LLVMStackSlot (com.oracle.svm.core.graal.llvm.util.LLVMUtils.LLVMStackSlot)1 LLVMValueRef (com.oracle.svm.shadowed.org.bytedeco.llvm.LLVM.LLVMValueRef)1