MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / min

Method min

src/jit/impl/mlir/ir/common.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79mlir::Value ValueBuilderHelper::min(mlir::Value lhs, mlir::Value rhs) {
80 mlir::Value cmp = m_builder.create<mlir::CmpFOp>(
81 m_location, mlir::CmpFPredicate::OLT, lhs, rhs);
82 return m_builder.create<mlir::SelectOp>(m_location, cmp, lhs, rhs);
83}
84
85/* ===================== constant functions ===================== */
86

Callers 4

atan2_approxFunction · 0.45
H_SWISH>Method · 0.45
FUSE_ADD_H_SWISH>Method · 0.45
initFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected