| // Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| package com.android.tools.r8.ir.analysis.value; |
| |
| import com.android.tools.r8.graph.AppInfoWithSubtyping; |
| import com.android.tools.r8.graph.AppView; |
| import com.android.tools.r8.ir.code.IRCode; |
| import com.android.tools.r8.ir.code.Instruction; |
| import com.android.tools.r8.ir.code.TypeAndLocalInfoSupplier; |
| |
| public abstract class SingleValue extends AbstractValue { |
| |
| @Override |
| public boolean isSingleValue() { |
| return true; |
| } |
| |
| @Override |
| public SingleValue asSingleValue() { |
| return this; |
| } |
| |
| public abstract Instruction createMaterializingInstruction( |
| AppView<? extends AppInfoWithSubtyping> appView, |
| IRCode code, |
| TypeAndLocalInfoSupplier info); |
| } |