MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / equals

Method equals

chapter22/src/main/java/com/seaofnodes/simple/node/Node.java:575–585  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

573
574 // ------------------------------------------------------------------------
575 //
576
577 /** Is this Node Memory related */
578 public boolean isMem() { return false; }
579
580 // Semantic change to the graph (so NOT a peephole), used by the Parser.
581 // If any input is a float, flip to a float-flavored opcode and widen any
582 // non-float input.
583 public final Node widen() {
584 if( !hasFloatInput() ) return this;
585 Node flt = copyF();
586 if( flt==null ) return this;
587 for( int i=1; i<nIns(); i++ )
588 flt.setDef(i, in(i)._type instanceof TypeFloat ? in(i) : new ToFloatNode(in(i)).peephole());

Callers 10

_print1Method · 0.45
idealizeMethod · 0.45
findMethod · 0.45
defineMethod · 0.45
idealizeMethod · 0.45
mlabelMethod · 0.45
armMethod · 0.45
negateMethod · 0.45
riscvMethod · 0.45
jmpMethod · 0.45

Calls 3

inMethod · 0.95
eqMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected