summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_ir_fs.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2015-04-07 16:11:37 -0700
committerIan Romanick <[email protected]>2018-03-26 08:50:43 -0700
commit8f83eea71e233227d34dc8547dac79d2912c2311 (patch)
tree15ff575b7bd14e99b83402c00d390e960763b406 /src/intel/compiler/brw_ir_fs.h
parenta21da49e5c55f8e61253503d865cef936125ea5f (diff)
i965: Add negative_equals methods
This method is similar to the existing ::equals methods. Instead of testing that two src_regs are equal to each other, it tests that one is the negation of the other. v2: Simplify various checks based on suggestions from Matt. Use src_reg::type instead of fixed_hw_reg.type in a check. Also suggested by Matt. v3: Rebase on 3 years. Fix some problems with negative_equals with VF constants. Add fs_reg::negative_equals. v4: Replace the existing default case with BRW_REGISTER_TYPE_UB, BRW_REGISTER_TYPE_B, and BRW_REGISTER_TYPE_NF. Suggested by Matt. Expand the FINISHME comment to better explain why it isn't already finished. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Alejandro PiƱeiro <[email protected]> [v3] Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_ir_fs.h')
-rw-r--r--src/intel/compiler/brw_ir_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_ir_fs.h b/src/intel/compiler/brw_ir_fs.h
index 54797ff0fa2..f06a33c516d 100644
--- a/src/intel/compiler/brw_ir_fs.h
+++ b/src/intel/compiler/brw_ir_fs.h
@@ -41,6 +41,7 @@ public:
fs_reg(enum brw_reg_file file, int nr, enum brw_reg_type type);
bool equals(const fs_reg &r) const;
+ bool negative_equals(const fs_reg &r) const;
bool is_contiguous() const;
/**