diff options
Diffstat (limited to 'willow/lib/IR/Value.cpp')
| -rw-r--r-- | willow/lib/IR/Value.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/willow/lib/IR/Value.cpp b/willow/lib/IR/Value.cpp index 13e029f..0bd1079 100644 --- a/willow/lib/IR/Value.cpp +++ b/willow/lib/IR/Value.cpp @@ -1,27 +1,27 @@ -#include <willow/IR/Value.h> -#include <willow/IR/Constant.h> -#include <ostream> - -std::ostream &operator<<(std::ostream &os, const willow::Value &v) { - using willow::ValueKind; - auto ty = v.getType(); - if (!v.isVoid()) - os << ty << " "; - - switch (v.getValueKind()) { - case ValueKind::Parameter: - [[fallthrough]]; - case ValueKind::Instruction: { - return os << "%" << v.getName(); - } - case ValueKind::BasicBlock: { - return os << "^" << v.getName(); - } - case ValueKind::Function: { - return os << "@" << v.getName(); - } - case ValueKind::Constant: { - return os << *static_cast<const willow::Constant*>(&v); - } - } -} +// #include <willow/IR/Value.h> +// #include <willow/IR/Constant.h> +// #include <ostream> +// +// std::ostream &operator<<(std::ostream &os, const willow::Value &v) { +// using willow::ValueKind; +// auto ty = v.getType(); +// if (!v.isVoid()) +// os << ty << " "; +// +// switch (v.getValueKind()) { +// case ValueKind::Parameter: +// [[fallthrough]]; +// case ValueKind::Instruction: { +// return os << "%" << v.getName(); +// } +// case ValueKind::BasicBlock: { +// return os << "^" << v.getName(); +// } +// case ValueKind::Function: { +// return os << "@" << v.getName(); +// } +// case ValueKind::Constant: { +// return os << *static_cast<const willow::Constant*>(&v); +// } +// } +// } |