Home
last modified time | relevance | path

Searched refs:ConstType (Results 1 – 19 of 19) sorted by relevance

/external/r8/src/main/java/com/android/tools/r8/ir/code/
DConstNumber.java23 public final ConstType type;
26 public ConstNumber(ConstType type, Value dest, long value) { in ConstNumber()
32 assert type != ConstType.OBJECT; in ConstNumber()
47 return type == ConstType.INT_OR_FLOAT || type == ConstType.LONG_OR_DOUBLE; in preciseTypeUnknown()
55 assert type == ConstType.INT || type == ConstType.INT_OR_FLOAT; in getIntValue()
60 assert type == ConstType.LONG || type == ConstType.LONG_OR_DOUBLE; in getLongValue()
65 assert type == ConstType.FLOAT || type == ConstType.INT_OR_FLOAT; in getFloatValue()
70 assert type == ConstType.DOUBLE || type == ConstType.LONG_OR_DOUBLE; in getDoubleValue()
DDebugLocalUninitialized.java20 public DebugLocalUninitialized(ConstType type, Value value) { in DebugLocalUninitialized()
21 super(type == ConstType.OBJECT ? ConstType.INT : type, value, 0); in DebugLocalUninitialized()
DConstType.java8 public enum ConstType { enum
17 public static ConstType fromNumericType(NumericType type) { in fromNumericType()
35 public static ConstType fromMoveType(MoveType moveType) { in fromMoveType()
DNeg.java35 return new ConstNumber(ConstType.INT, value, result); in fold()
39 return new ConstNumber(ConstType.LONG, value, result); in fold()
43 return new ConstNumber(ConstType.FLOAT, value, Float.floatToIntBits(result)); in fold()
48 return new ConstNumber(ConstType.DOUBLE, value, Double.doubleToLongBits(result)); in fold()
DArithmeticBinop.java63 return new ConstNumber(ConstType.INT, value, result); in fold()
69 return new ConstNumber(ConstType.LONG, value, result); in fold()
75 return new ConstNumber(ConstType.FLOAT, value, Float.floatToIntBits(result)); in fold()
82 return new ConstNumber(ConstType.DOUBLE, value, Double.doubleToLongBits(result)); in fold()
DNot.java31 return new ConstNumber(ConstType.INT, value, result); in fold()
36 return new ConstNumber(ConstType.LONG, value, result); in fold()
DLogicalBinop.java41 return new ConstNumber(ConstType.INT, value, result); in fold()
54 return new ConstNumber(ConstType.LONG, value, result); in fold()
DIRCode.java379 return new ConstNumber(ConstType.INT, createValue(MoveType.SINGLE), value); in createIntConstant()
383 return new ConstNumber(ConstType.INT, createValue(MoveType.SINGLE), 1); in createTrue()
387 return new ConstNumber(ConstType.INT, createValue(MoveType.SINGLE), 0); in createFalse()
DMoveType.java63 public static MoveType fromConstType(ConstType type) { in fromConstType()
DCmp.java184 return new ConstNumber(ConstType.INT, value, result); in fold()
/external/protobuf/src/google/protobuf/
Dextension_set.h694 typedef Type ConstType; typedef
698 static inline ConstType Get(int number, const ExtensionSet& set,
699 ConstType default_value);
701 ConstType value, ExtensionSet* set);
707 typedef Type ConstType; typedef
718 static inline const RepeatedField<ConstType>&
806 typedef const string& ConstType; in PROTOBUF_DEFINE_PRIMITIVE_TYPE() typedef
811 ConstType default_value) { in PROTOBUF_DEFINE_PRIMITIVE_TYPE()
828 typedef const string& ConstType; typedef
888 typedef Type ConstType; typedef
[all …]
/external/r8/src/test/java/com/android/tools/r8/ir/regalloc/
DIdenticalAfterRegisterAllocationTest.java11 import com.android.tools.r8.ir.code.ConstType;
50 ConstNumber const0 = new ConstNumber(ConstType.INT, value0, 0); in equalityOfConstantOperands()
52 ConstNumber const1 = new ConstNumber(ConstType.INT, value1, 1); in equalityOfConstantOperands()
54 ConstNumber const2 = new ConstNumber(ConstType.INT, value2, 2); in equalityOfConstantOperands()
/external/r8/src/main/java/com/android/tools/r8/graph/
DDexValue.java12 import com.android.tools.r8.ir.code.ConstType;
168 : new ConstNumber(ConstType.INT, dest, value); in asConstInstruction()
212 : new ConstNumber(ConstType.INT, dest, value); in asConstInstruction()
260 : new ConstNumber(ConstType.INT, dest, value); in asConstInstruction()
304 : new ConstNumber(ConstType.INT, dest, value); in asConstInstruction()
348 : new ConstNumber(ConstType.LONG, dest, value); in asConstInstruction()
763 : new ConstNumber(ConstType.INT, dest, value ? 1 : 0); in asConstInstruction()
/external/r8/src/main/java/com/android/tools/r8/ir/optimize/
DMemberValuePropagation.java16 import com.android.tools.r8.ir.code.ConstType;
80 ConstType.fromMoveType(moveType), value, rule.getReturnValue().getSingleValue()); in constantReplacementFromProguardRule()
175 new ConstNumber(ConstType.fromMoveType(moveType), value, constant); in rewriteWithConstantValues()
/external/swiftshader/third_party/subzero/src/
DIceELFObjectWriter.h79 template <typename ConstType> void writeConstantPool(Type Ty);
DIceELFObjectWriter.cpp518 template <typename ConstType> void ELFObjectWriter::writeConstantPool(Type Ty) { in writeConstantPool()
561 auto *Const = llvm::cast<ConstType>(C); in writeConstantPool()
566 typename ConstType::PrimType Value = Const->getValue(); in writeConstantPool()
/external/r8/src/main/java/com/android/tools/r8/ir/conversion/
DIRBuilder.java36 import com.android.tools.r8.ir.code.ConstType;
502 public void addDebugUninitialized(int register, ConstType type) {
658 instruction = new ConstNumber(ConstType.INT_OR_FLOAT, out, value);
662 instruction = new ConstNumber(ConstType.LONG_OR_DOUBLE, out, value);
672 ConstType type, int dest, long value, Map<Long, ConstNumber> table) {
700 canonicalizeAndAddConst(ConstType.LONG, dest, value, longConstants);
704 canonicalizeAndAddConst(ConstType.DOUBLE, dest, value, doubleConstants);
708 canonicalizeAndAddConst(ConstType.INT, dest, value, intConstants);
712 canonicalizeAndAddConst(ConstType.FLOAT, dest, value, floatConstants);
716 canonicalizeAndAddConst(ConstType.INT, dest, value, nullConstants);
[all …]
DJarSourceCode.java23 import com.android.tools.r8.ir.code.ConstType;
796 private static ConstType constType(Type type) { in constType()
800 return ConstType.OBJECT; in constType()
806 return ConstType.INT; in constType()
808 return ConstType.FLOAT; in constType()
810 return ConstType.LONG; in constType()
812 return ConstType.DOUBLE; in constType()
/external/r8/src/test/java/com/android/tools/r8/ir/
DSplitBlockTest.java16 import com.android.tools.r8.ir.code.ConstType;
362 Instruction constInstruction = new ConstNumber(ConstType.INT, newConstValue, 10); in splitBeforeReturn()