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

Method equals

chapter21/src/main/java/com/seaofnodes/simple/node/Node.java:571–581  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

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