mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 14:20:29 +01:00
isaspec: Remove unused leftovers
These were never used, leftovers from an earlier iteration of isaspec which used an RPN based thing for expressions. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13049>
This commit is contained in:
parent
878cc65c40
commit
cd3ee83ca5
1 changed files with 0 additions and 26 deletions
|
|
@ -298,13 +298,6 @@ class State(object):
|
|||
def expr_name(self, root, expr):
|
||||
return root.get_c_name() + '_' + expr.get_c_name()
|
||||
|
||||
def has_jmp(self, instructions):
|
||||
# I'm sure there is some clever more pythony way to do this:
|
||||
for instr in instructions:
|
||||
if instr[0] == 'JMP':
|
||||
return True
|
||||
return False
|
||||
|
||||
template = """\
|
||||
/* Copyright (C) 2020 Google, Inc.
|
||||
*
|
||||
|
|
@ -418,21 +411,6 @@ struct bitset_params {
|
|||
%endfor
|
||||
};
|
||||
|
||||
#define push(v) do { \
|
||||
assert(sp < ARRAY_SIZE(stack)); \
|
||||
stack[sp] = (v); \
|
||||
sp++; \
|
||||
} while (0)
|
||||
#define peek() ({ \
|
||||
assert(sp < ARRAY_SIZE(stack)); \
|
||||
stack[sp - 1]; \
|
||||
})
|
||||
#define pop() ({ \
|
||||
assert(sp > 0); \
|
||||
--sp; \
|
||||
stack[sp]; \
|
||||
})
|
||||
|
||||
<%def name="render_expr(leaf, expr)">
|
||||
static inline int64_t
|
||||
${s.expr_name(leaf.get_root(), expr)}(struct encode_state *s, struct bitset_params *p, ${leaf.get_root().encode.type} src)
|
||||
|
|
@ -474,10 +452,6 @@ ${s.expr_name(leaf.get_root(), expr)}(struct encode_state *s, struct bitset_para
|
|||
% endfor
|
||||
%endfor
|
||||
|
||||
#undef pop
|
||||
#undef peek
|
||||
#undef push
|
||||
|
||||
|
||||
<%def name="case_pre(root, expr)">
|
||||
%if expr is not None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue