use of com.oracle.truffle.llvm.parser.model.target.TargetTriple in project sulong by graalvm.
the class Module method record.
@Override
public void record(long id, long[] args) {
final ModuleRecord record = ModuleRecord.decode(id);
switch(record) {
case VERSION:
mode = (int) args[0];
break;
case TARGET_TRIPLE:
module.addTargetInformation(new TargetTriple(Records.toString(args)));
break;
case TARGET_DATALAYOUT:
final TargetDataLayout layout = TargetDataLayout.fromString(Records.toString(args));
module.setTargetDataLayout(layout);
break;
case GLOBAL_VARIABLE:
createGlobalVariable(args);
break;
case FUNCTION:
createFunction(args);
break;
case ALIAS:
createGlobalAliasNew(args);
break;
case ALIAS_OLD:
createGlobalAliasOld(args);
break;
default:
break;
}
}
Aggregations