Search in sources :

Example 1 with LLVMStackMapInfo

use of com.oracle.svm.core.graal.llvm.util.LLVMStackMapInfo in project graal by oracle.

the class LLVMNativeImageCodeCache method compileBitcodeBatches.

private void compileBitcodeBatches(BatchExecutor executor, DebugContext debug, int numBatches) {
    stackMapDumper.startDumpingFunctions();
    executor.forEach(numBatches, batchId -> (debugContext) -> {
        llvmOptimize(debug, getBatchOptimizedFilename(batchId), getBatchBitcodeFilename(batchId));
        llvmCompile(debug, getBatchCompiledFilename(batchId), getBatchOptimizedFilename(batchId));
        LLVMStackMapInfo stackMap = objectFileReader.parseStackMap(getBatchCompiledPath(batchId));
        IntStream.range(getBatchStart(batchId), getBatchEnd(batchId)).forEach(id -> objectFileReader.readStackMap(stackMap, compilations.get(methodIndex[id]), methodIndex[id], id));
    });
}
Also used : LLVMStackMapInfo(com.oracle.svm.core.graal.llvm.util.LLVMStackMapInfo)

Aggregations

LLVMStackMapInfo (com.oracle.svm.core.graal.llvm.util.LLVMStackMapInfo)1