use of com.oracle.truffle.llvm.parser.model.functions.FunctionDefinition in project sulong by graalvm.
the class LLVMLivenessAnalysis method resolve.
private static int resolve(FrameDescriptor frame, SymbolImpl symbol) {
if (symbol instanceof ValueSymbol && !(symbol instanceof GlobalValueSymbol || symbol instanceof FunctionDefinition || symbol instanceof FunctionDeclaration)) {
String name = ((ValueSymbol) symbol).getName();
assert name != null;
FrameSlot frameSlot = frame.findFrameSlot(name);
assert frameSlot != null : "No Frameslot for ValueSymbol: " + symbol;
return frameSlot.getIndex();
}
return -1;
}
Aggregations