From 1fd2d6d88f5f78d879bf38bb3fba7fa2e749d3b0 Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Thu, 19 Feb 2026 13:13:41 -0500 Subject: [willow]: initial IRBuilder API (#9) - add IRBuilder api - remove `name` field from `Value` - fix some bugs in IList interface - more verifier tests --- willow/lib/IR/Value.cpp | 54 ++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'willow/lib/IR/Value.cpp') 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 -#include -#include - -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(&v); - } - } -} +// #include +// #include +// #include +// +// 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(&v); +// } +// } +// } -- cgit v1.2.3