mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
Remove boilerplate code (general binaryOp methods in Compiler)
This commit is contained in:
@ -112,6 +112,14 @@ inline bool isGeneralBranch(lir::TernaryOperation op) {
|
||||
return isBranch(op) && !isFloatBranch(op);
|
||||
}
|
||||
|
||||
inline bool isGeneralBinaryOp(lir::TernaryOperation op) {
|
||||
return op < FloatAdd;
|
||||
}
|
||||
|
||||
inline bool isFloatBinaryOp(lir::TernaryOperation op) {
|
||||
return op > FloatAdd && op <= FloatMin;
|
||||
}
|
||||
|
||||
class Operand { };
|
||||
|
||||
class Constant: public Operand {
|
||||
|
Reference in New Issue
Block a user