MCPcopy Create free account
hub / github.com/ReadyTalk/avian / binaryOp

Method binaryOp

src/codegen/compiler.cpp:2823–2837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2821 }
2822
2823 virtual ir::Value* binaryOp(lir::TernaryOperation op,
2824 ir::Type type,
2825 ir::Value* a,
2826 ir::Value* b)
2827 {
2828 assertT(&c,
2829 (isGeneralBinaryOp(op) and isGeneralValue(a) and isGeneralValue(b))
2830 or (isFloatBinaryOp(op) and isFloatValue(a) and isFloatValue(b)));
2831
2832 Value* result = value(&c, type);
2833
2834 appendCombine(
2835 &c, op, static_cast<Value*>(a), static_cast<Value*>(b), result);
2836 return result;
2837 }
2838
2839 virtual ir::Value* unaryOp(lir::BinaryOperation op, ir::Value* a)
2840 {

Callers 3

appendMethod · 0.80
compileFunction · 0.80

Calls 7

assertTFunction · 0.85
isGeneralBinaryOpFunction · 0.85
isGeneralValueFunction · 0.85
isFloatBinaryOpFunction · 0.85
isFloatValueFunction · 0.85
valueFunction · 0.85
appendCombineFunction · 0.85

Tested by

no test coverage detected