summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir/microinstruction.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-21 05:25:46 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:28 +0200
commit6944cabb899c4367a63cde97ae2bc2eb1a0fb790 (patch)
treeb52f0687254b6c5c123dd1b5171bad124055c6dc /src/shader_recompiler/frontend/ir/microinstruction.cpp
parentshader: Inline common IR::Block methods (diff)
downloadyuzu-6944cabb899c4367a63cde97ae2bc2eb1a0fb790.tar
yuzu-6944cabb899c4367a63cde97ae2bc2eb1a0fb790.tar.gz
yuzu-6944cabb899c4367a63cde97ae2bc2eb1a0fb790.tar.bz2
yuzu-6944cabb899c4367a63cde97ae2bc2eb1a0fb790.tar.lz
yuzu-6944cabb899c4367a63cde97ae2bc2eb1a0fb790.tar.xz
yuzu-6944cabb899c4367a63cde97ae2bc2eb1a0fb790.tar.zst
yuzu-6944cabb899c4367a63cde97ae2bc2eb1a0fb790.zip
Diffstat (limited to 'src/shader_recompiler/frontend/ir/microinstruction.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/microinstruction.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/shader_recompiler/frontend/ir/microinstruction.cpp b/src/shader_recompiler/frontend/ir/microinstruction.cpp
index 7555ac00a..41f9fa0cd 100644
--- a/src/shader_recompiler/frontend/ir/microinstruction.cpp
+++ b/src/shader_recompiler/frontend/ir/microinstruction.cpp
@@ -221,28 +221,10 @@ Inst* Inst::GetAssociatedPseudoOperation(IR::Opcode opcode) {
}
}
-size_t Inst::NumArgs() const {
- return op == Opcode::Phi ? phi_args.size() : NumArgsOf(op);
-}
-
IR::Type Inst::Type() const {
return TypeOf(op);
}
-Value Inst::Arg(size_t index) const {
- if (op == Opcode::Phi) {
- if (index >= phi_args.size()) {
- throw InvalidArgument("Out of bounds argument index {} in phi instruction", index);
- }
- return phi_args[index].second;
- } else {
- if (index >= NumArgsOf(op)) {
- throw InvalidArgument("Out of bounds argument index {} in opcode {}", index, op);
- }
- return args[index];
- }
-}
-
void Inst::SetArg(size_t index, Value value) {
if (index >= NumArgs()) {
throw InvalidArgument("Out of bounds argument index {} in opcode {}", index, op);