001/* 002 * This file is part of the Jikes RVM project (http://jikesrvm.org). 003 * 004 * This file is licensed to You under the Eclipse Public License (EPL); 005 * You may not use this file except in compliance with the License. You 006 * may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/eclipse-1.0.php 009 * 010 * See the COPYRIGHT.txt file distributed with this work for information 011 * regarding copyright ownership. 012 */ 013package org.jikesrvm.compilers.opt.ir.operand; 014 015 016/** 017 * This operand represents, in a phi function, a control-flow path that is 018 * actually unreachable. 019 * 020 * @see Operand 021 */ 022public final class UnreachableOperand extends ConstantOperand { 023 024 @Override 025 public Operand copy() { 026 return new UnreachableOperand(); 027 } 028 029 @Override 030 public boolean similar(Operand op) { 031 return op instanceof UnreachableOperand; 032 } 033 034 /** 035 * Returns the string representation of this operand. 036 * 037 * @return a string representation of this operand. 038 */ 039 @Override 040 public String toString() { 041 return "<unreachable>"; 042 } 043}