diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-10-19 14:04:39 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-10-20 12:02:31 +0000 |
commit | e981b69484ce6b60d3d0f886fef1af74c0ceb20c (patch) | |
tree | 42be3b0f54abbe0216e6dc181e237477c2299c7a /src/panfrost/midgard/midgard_ops.h | |
parent | 8e31b1485825d64a12d23edd62b007c67b8a7fa1 (diff) |
pan/midgard: Implement OP_IS_STORE with table
..rather than open-coding.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_ops.h')
-rw-r--r-- | src/panfrost/midgard/midgard_ops.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_ops.h b/src/panfrost/midgard/midgard_ops.h index 3e9fff44836..2befc374ee2 100644 --- a/src/panfrost/midgard/midgard_ops.h +++ b/src/panfrost/midgard/midgard_ops.h @@ -26,6 +26,8 @@ extern struct mir_op_props alu_opcode_props[256]; extern struct mir_ldst_op_props load_store_opcode_props[256]; +#define OP_IS_STORE(op) (load_store_opcode_props[op].props & LDST_STORE) + /* Is this opcode that of an integer (regardless of signedness)? Instruction * names authoritatively determine types */ |