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

Method equals

chapter23/src/main/java/com/seaofnodes/simple/node/Node.java:578–588  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

576
577 // ------------------------------------------------------------------------
578 //
579
580 /** Is this Node Memory related */
581 public boolean isMem() { return false; }
582
583 // Semantic change to the graph (so NOT a peephole), used by the Parser.
584 // If any input is a float, flip to a float-flavored opcode and widen any
585 // non-float input.
586 public final Node widen() {
587 if( !hasFloatInput() ) return this;
588 Node flt = copyF();
589 if( flt==null ) return this;
590 for( int i=1; i<nIns(); i++ )
591 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