Go to the documentation of this file.
37 #include <boost/format.hpp>
54 switch (operand.
type()) {
87 std::set<std::string> opNames;
92 for (
int i = 0; i < fuNav.
count(); i++) {
100 <<
"// automatically generated by tceoclextgen" << std::endl
103 for (std::set<std::string>::const_iterator i = opNames.begin();
104 i != opNames.end(); ++i) {
105 std::string name = (*i);
108 "#define cl_TCE_%s\n"
109 "#define cl%sTCE _TCE_%s\n\n")
110 % name % name % name).str();
114 int main(
int argc,
char* argv[]) {
117 std::cout <<
"Usage: tceoclextgen ADF" << std::endl;
TTAMachine::Machine * machine
the architecture definition of the estimated processor
const std::string & name() const
std::string operandTypeCString(const Operand &operand)
int main(int argc, char *argv[])
virtual FunctionUnitNavigator functionUnitNavigator() const
virtual int operationCount() const
std::string errorMessage() const
virtual OperandType type() const
void generateHeader(std::ostream &stream, const TTAMachine::Machine &machine)
ComponentType * item(int index) const
virtual HWOperation * operation(const std::string &name) const
static Machine * loadFromADF(const std::string &adfFileName)