LibMPI.java
package edu.udel.cis.vsl.tass.model.impl.lib;
import edu.udel.cis.vsl.tass.model.IF.FunctionIF;
import edu.udel.cis.vsl.tass.model.IF.ModelFactoryIF;
import edu.udel.cis.vsl.tass.model.IF.ModelIF;
import edu.udel.cis.vsl.tass.model.IF.ProcessIF;
import edu.udel.cis.vsl.tass.model.IF.SyntaxException;
import edu.udel.cis.vsl.tass.model.IF.type.TypeIF;
// need to add a send-recv node.
// remove send, recv, from grammar, just make them functions.
// during complete, if these functions are used, load them from library.
// wildcard send-recv allowed?
// also, remove allocate/deallocate from grammar
// just functions malloc, free
// add sizeof to grammar....sizeof(type): returns integer-value symbolic
// expression referring to type.
public class LibMPI {
public void addSendRecv(ProcessIF process) throws SyntaxException {
ModelIF model = process.model();
ModelFactoryIF factory = model.modelFactory();
TypeIF voidType = factory.voidType();
String functionName = "TASS_sendrecv";
FunctionIF function = model.newFunction(process, functionName,
voidType, 6);
function.toString();
}
}