Skip to content

Commit

Permalink
remove more ispc related content
Browse files Browse the repository at this point in the history
  • Loading branch information
adhithadias committed May 11, 2022
1 parent 30c2ecf commit 168a289
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 28 deletions.
2 changes: 1 addition & 1 deletion include/taco/ir/ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ struct Switch : public StmtNode<Switch> {
static const IRNodeType _type_info = IRNodeType::Switch;
};

enum class LoopKind {Serial, Static, Dynamic, Runtime, Vectorized, Static_Chunked, Foreach, Mul_Thread, Init};
enum class LoopKind {Serial, Static, Dynamic, Runtime, Vectorized, Static_Chunked};

/** A for loop from start to end by increment.
* A vectorized loop will require the increment to be 1 and the
Expand Down
3 changes: 0 additions & 3 deletions include/taco/ir/ir_printer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class IRPrinter : public IRVisitorStrict {
public:
IRPrinter(std::ostream& stream);
IRPrinter(std::ostream& stream, bool color, bool simplify);
IRPrinter(std::ostream& stream, std::ostream& stream2, bool color, bool simplify);
virtual ~IRPrinter();

void setColor(bool color);
Expand Down Expand Up @@ -73,7 +72,6 @@ class IRPrinter : public IRVisitorStrict {
virtual void visit(const Break*);

std::ostream &stream;
std::ostream &stream2;
int indent;
bool color;
bool simplify;
Expand Down Expand Up @@ -111,7 +109,6 @@ class IRPrinter : public IRVisitorStrict {
void doIndent();
void printBinOp(Expr a, Expr b, std::string op, Precedence precedence);
bool needsParentheses(Precedence precedence);
void sendToStream(std::stringstream &stream);

std::string keywordString(std::string);
std::string commentString(std::string);
Expand Down
9 changes: 0 additions & 9 deletions src/codegen/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ shared_ptr<CodeGen> CodeGen::init_default(std::ostream &dest, OutputKind outputK
}
}

shared_ptr<CodeGen> CodeGen::init_default(std::ostream &dest, std::ostream &dest2, OutputKind outputKind) {
if (should_use_CUDA_codegen()) {
return make_shared<CodeGen_CUDA>(dest, outputKind);
}
else {
return make_shared<CodeGen_C>(dest, outputKind);
}
}

int CodeGen::countYields(const Function *func) {
struct CountYields : public IRVisitor {
int yields = 0;
Expand Down
3 changes: 0 additions & 3 deletions src/codegen/codegen.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ class CodeGen : public IRPrinter {
CodeGen(std::ostream& stream, CodeGenType type) : IRPrinter(stream), codeGenType(type) {};
CodeGen(std::ostream& stream, bool color, bool simplify, CodeGenType type)
: IRPrinter(stream, color, simplify), codeGenType(type) {};
CodeGen(std::ostream& stream, std::ostream& stream2, bool color, bool simplify, CodeGenType type)
: IRPrinter(stream, stream2, color, simplify), codeGenType(type) {};
/// Initialize the default code generator
static std::shared_ptr<CodeGen> init_default(std::ostream &dest, OutputKind outputKind);
static std::shared_ptr<CodeGen> init_default(std::ostream &dest, std::ostream &dest2, OutputKind outputKind);

/// Compile a lowered function
virtual void compile(Stmt stmt, bool isFirst=false) =0;
Expand Down
3 changes: 0 additions & 3 deletions src/codegen/codegen_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@ class CodeGen_C::FindVars : public IRVisitor {

CodeGen_C::CodeGen_C(std::ostream &dest, OutputKind outputKind, bool simplify)
: CodeGen(dest, false, simplify, C), out(dest), out2(dest), outputKind(outputKind) {}

CodeGen_C::CodeGen_C(std::ostream &dest, std::ostream &dest2, OutputKind outputKind, bool simplify)
: CodeGen(dest, dest2, false, simplify, C), out(dest), out2(dest2), outputKind(outputKind) {}

CodeGen_C::~CodeGen_C() {}

Expand Down
10 changes: 1 addition & 9 deletions src/ir/ir_printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ IRPrinter::IRPrinter(ostream &s) : IRPrinter(s, false, false) {
}

IRPrinter::IRPrinter(ostream &s, bool color, bool simplify)
: stream(s), stream2(s), indent(0), color(color), simplify(simplify) {
}

IRPrinter::IRPrinter(ostream &s, ostream &s2, bool color, bool simplify)
: stream(s), stream2(s2), indent(0), color(color), simplify(simplify) {
: stream(s), indent(0), color(color), simplify(simplify) {
}

IRPrinter::~IRPrinter() {
Expand Down Expand Up @@ -427,10 +423,6 @@ void IRPrinter::visit(const For* op) {

}

void IRPrinter::sendToStream(std::stringstream &stream) {
this->stream << stream.str();
}

void IRPrinter::visit(const While* op) {
doIndent();
stream << keywordString("while ");
Expand Down

0 comments on commit 168a289

Please sign in to comment.