/external/dexmaker/src/dx/java/com/android/dx/ssa/ |
SCCP.java | 27 import com.android.dx.rop.cst.Constant; 37 * A small variant of Wegman and Zadeck's Sparse Conditional Constant 43 private static final int CONSTANT = 1; 51 /** For those registers that are constant, this is the constant value */ 52 private Constant[] latticeConstants; 74 this.latticeConstants = new Constant[this.regCount]; 88 * Performs sparse conditional constant propagation on a method. 130 * @param cst Constant value (may be null) 133 private boolean setLatticeValueTo(int reg, int value, Constant cst) [all...] |
/dalvik/dx/src/com/android/dx/dex/cf/ |
CfTranslator.java | 46 import com.android.dx.rop.cst.Constant; 141 // intern constant pool method, field and type references 146 Constant constant = constantPool.getOrNull(i); local 147 if (constant instanceof CstMethodRef) { 148 methodIdsSection.intern((CstBaseMethodRef) constant); 149 } else if (constant instanceof CstInterfaceMethodRef) { 150 methodIdsSection.intern(((CstInterfaceMethodRef) constant).toMethodRef()); 151 } else if (constant instanceof CstFieldRef) { 152 fieldIdsSection.intern((CstFieldRef) constant); [all...] |
/external/clang/include/clang/Basic/ |
DiagnosticASTKinds.td | 12 // Constant expression diagnostics. These (and their users) belong in Sema. 16 " a reinterpret_cast|cast from %1}0 is not allowed in a constant expression">; 28 "be used in a constant expression">; 32 "cannot evaluate virtual function call in a constant expression">; 35 "in a constant expression">; 37 "non-literal type %0 cannot be used in a constant expression">; 40 "%select{temporary|%3}2 is not a constant expression">; 44 "%select{array of %2 elements|non-array object}1 in a constant expression">; 62 "%select{temporary|%2}1 is not a constant expression">; 74 "initializer of %0 is not a constant expression"> [all...] |
/external/clang/lib/CodeGen/ |
CGExprConstant.cpp | 1 //===--- CGExprConstant.cpp - Emit LLVM Code from Constant Expressions ----===// 10 // This contains code to emit Constant Expr nodes as LLVM code. 43 SmallVector<llvm::Constant *, 32> Elements; 45 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 47 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 56 void AppendVTablePointer(BaseSubobject Base, llvm::Constant *VTable, 60 llvm::Constant *InitExpr); 62 void AppendBytes(CharUnits FieldOffsetInChars, llvm::Constant *InitCst); 75 llvm::Constant *VTable, const CXXRecordDecl *VTableClass, 77 llvm::Constant *Finalize(QualType Ty) [all...] |
/external/clang/test/SemaCXX/ |
constant-expression-cxx1y.cpp | 69 static_assert(j(2), ""); // expected-error {{constant expression}} expected-note {{in call to 'j(2)'}} 78 // If the return type is not 'void', no return statements => never a constant 91 constexpr U u2{2}; // expected-error {{constant expression}} expected-note {{in call to 'U(2)'}} 100 static_assert(l(true), ""); // expected-error {{constant expression}} expected-note {{in call to 'l(true)'}} 102 // Potential constant expression checking is still applied where possible. 103 constexpr int htonl(int x) { // expected-error {{never produces a constant expression}} 106 return *reinterpret_cast<int*>(arr); // expected-note {{reinterpret_cast is not allowed in a constant expression}} 115 return *reinterpret_cast<int*>(arr); // expected-note {{reinterpret_cast is not allowed in a constant expression}} 118 constexpr int swapped = maybe_htonl(false, 123); // expected-error {{constant expression}} expected-note {{in call}} 134 const_cast<int&>(a) = b; // expected-note 2{{constant expression cannot modify an object that is visible outside that expression} [all...] |
constant-expression-cxx11.cpp | 6 static_assert(++x, "test"); // expected-error {{not an integral constant expression}} 110 constexpr int &Recurse3 = Recurse2; // expected-error {{must be initialized by a constant expression}} expected-note {{initializer of 'Recurse2' is not a constant expression}} 115 constexpr int RecurseC = RecurseB; // expected-error {{must be initialized by a constant expression}} expected-note {{initializer of 'RecurseB' is not a constant expression}} 151 static_assert(F(4, k) == 3, ""); // expected-error {{constant expression}} expected-note {{read of non-const variable 'k'}} 203 constexpr int a = MaybeReturnJunk(true, 0); // expected-error {{constant expression}} expected-note {{read of variable whose lifetime has ended}} 214 constexpr int n3 = InternalReturnJunk(0); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to 'InternalReturnJunk(0)'}} 254 constexpr int Invalid = Apply(Select(0), 0); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to 'Apply(0, 0)'}} 265 constexpr bool g3 = &x <= &y; // expected-error {{must be initialized by a constant expression} [all...] |
/dalvik/dx/src/com/android/dx/cf/cst/ |
ConstantPoolParser.java | 35 import com.android.dx.rop.cst.Constant; 53 * Parser for a constant pool embedded in a class file. 56 /** {@code non-null;} the bytes of the constant pool */ 59 /** {@code non-null;} actual parsed constant pool contents */ 66 * -1 || >= 10; the end offset of this constant pool in the 99 * Gets the end offset of this constant pool in the {@code byte[]} 110 * Gets the actual constant pool. 112 * @return {@code non-null;} the constant pool 142 * Track the constant value's original string type. True if constants[i] was 156 Constant cst = pool.getOrNull(i) [all...] |
/external/llvm/test/CodeGen/Generic/ |
print-arith-int.ll | 2 @a_str = internal constant [8 x i8] c"a = %d\0A\00" ; <[8 x i8]*> [#uses=1] 3 @b_str = internal constant [8 x i8] c"b = %d\0A\00" ; <[8 x i8]*> [#uses=1] 4 @add_str = internal constant [12 x i8] c"a + b = %d\0A\00" ; <[12 x i8]*> [#uses=1] 5 @sub_str = internal constant [12 x i8] c"a - b = %d\0A\00" ; <[12 x i8]*> [#uses=1] 6 @mul_str = internal constant [12 x i8] c"a * b = %d\0A\00" ; <[12 x i8]*> [#uses=1] 7 @div_str = internal constant [12 x i8] c"b / a = %d\0A\00" ; <[12 x i8]*> [#uses=1] 8 @rem_str = internal constant [13 x i8] c"b \5C% a = %d\0A\00" ; <[13 x i8]*> [#uses=1] 9 @lt_str = internal constant [12 x i8] c"a < b = %d\0A\00" ; <[12 x i8]*> [#uses=1] 10 @le_str = internal constant [13 x i8] c"a <= b = %d\0A\00" ; <[13 x i8]*> [#uses=1] 11 @gt_str = internal constant [12 x i8] c"a > b = %d\0A\00" ; <[12 x i8]*> [#uses=1 [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
ArrayData.java | 39 private final ArrayList<Constant> values; 41 /** non-null: type of constant that initializes the array */ 42 private final Constant arrayType; 60 ArrayList<Constant> values, 61 Constant arrayType) { 93 throw new IllegalArgumentException("Unexpected constant type"); 122 Constant cst = values.get(i); 129 Constant cst = values.get(i); 136 Constant cst = values.get(i); 143 Constant cst = values.get(i) [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/code/ |
ArrayData.java | 39 private final ArrayList<Constant> values; 41 /** non-null: type of constant that initializes the array */ 42 private final Constant arrayType; 60 ArrayList<Constant> values, 61 Constant arrayType) { 93 throw new IllegalArgumentException("Unexpected constant type"); 122 Constant cst = values.get(i); 129 Constant cst = values.get(i); 136 Constant cst = values.get(i); 143 Constant cst = values.get(i) [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
ethpccal.h | 42 * Constant for መስከረም, the 1st month of the Ethiopic year. 47 * Constant for ጥቅምት, the 2nd month of the Ethiopic year. 52 * Constant for ኅዳር, the 3rd month of the Ethiopic year. 57 * Constant for ታኅሣሥ, the 4th month of the Ethiopic year. 62 * Constant for ጥር, the 5th month of the Ethiopic year. 67 * Constant for የካቲት, the 6th month of the Ethiopic year. 72 * Constant for መጋቢት, the 7th month of the Ethiopic year. 77 * Constant for ሚያዝያ, the 8th month of the Ethiopic year. 82 * Constant for ግንቦት, the 9th month of the Ethiopic year. 87 * Constant for ሰኔ, the 10th month of the Ethiopic year. [all...] |
/external/icu4c/i18n/ |
ethpccal.h | 42 * Constant for መስከረም, the 1st month of the Ethiopic year. 47 * Constant for ጥቅምት, the 2nd month of the Ethiopic year. 52 * Constant for ኅዳር, the 3rd month of the Ethiopic year. 57 * Constant for ታኅሣሥ, the 4th month of the Ethiopic year. 62 * Constant for ጥር, the 5th month of the Ethiopic year. 67 * Constant for የካቲት, the 6th month of the Ethiopic year. 72 * Constant for መጋቢት, the 7th month of the Ethiopic year. 77 * Constant for ሚያዝያ, the 8th month of the Ethiopic year. 82 * Constant for ግንቦት, the 9th month of the Ethiopic year. 87 * Constant for ሰኔ, the 10th month of the Ethiopic year. [all...] |
/external/javassist/src/main/javassist/bytecode/annotation/ |
AnnotationsWriter.java | 67 * @param cp the constant pool. 75 * Obtains the constant pool given to the constructor. 171 * @param value the constant value. 181 * @param value the constant value. 191 * @param value the constant value. 201 * @param value the constant value. 211 * @param value the constant value. 221 * @param value the constant value. 231 * @param value the constant value. 241 * @param value the constant value [all...] |
EnumMemberValue.java | 26 * Enum constant value. 35 * Constructs an enum constant value. The initial value is specified 36 * by the constant pool entries at the given indexes. 50 * Constructs an enum constant value. 95 * Obtains the name of the enum constant value. 102 * Changes the name of the enum constant value.
|
/external/llvm/lib/Transforms/Instrumentation/ |
ProfilingUtils.cpp | 33 Constant *InitFn = M.getOrInsertFunction(FnName, Type::getInt32Ty(Context), 42 Args[0] = Constant::getNullValue(Type::getInt32Ty(Context)); 43 Args[1] = Constant::getNullValue(ArgVTy); 50 std::vector<Constant*> GEPIndices(2, 51 Constant::getNullValue(Type::getInt32Ty(Context))); 58 // If this profiling instrumentation doesn't have a constant array, just 117 // Create the getelementptr constant expression 118 std::vector<Constant*> Indices(2); 119 Indices[0] = Constant::getNullValue(Type::getInt32Ty(Context)); 121 Constant *ElementPtr [all...] |
/external/llvm/test/Other/ |
constant-fold-gep.ll | 2 ; constant folder. 17 ; The automatic constant folder in opt does not have targetdata access, so 18 ; it can't fold gep arithmetic, in general. However, the constant folder run 51 ; PLAIN: @a = constant i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2310) 52 ; PLAIN: @b = constant i64 ptrtoint (double* getelementptr ({ i1, double }* null, i64 0, i32 1) to i64) 53 ; PLAIN: @c = constant i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2) 54 ; PLAIN: @d = constant i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 11) 55 ; PLAIN: @e = constant i64 ptrtoint (double* getelementptr ({ double, float, double, double }* null, i64 0, i32 2) to i64) 56 ; PLAIN: @f = constant i64 1 57 ; PLAIN: @g = constant i64 ptrtoint (double* getelementptr ({ i1, double }* null, i64 0, i32 1) to i64 [all...] |
/external/llvm/lib/IR/ |
Globals.cpp | 84 GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link, 85 Constant *InitVal, 93 isConstantGlobal(constant), threadLocalMode(TLMode), 104 GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, 105 LinkageTypes Link, Constant *InitVal, 114 isConstantGlobal(constant), threadLocalMode(TLMode), 148 // If you call this, then you better know this GVar has a constant 156 "Attempt to replace wrong constant initializer in GVar"); 158 // And, you better have a constant for the replacement value 159 assert(isa<Constant>(To) & [all...] |
/external/proguard/src/proguard/classfile/instruction/ |
VariableInstruction.java | 37 public int constant; field in class:VariableInstruction 67 int constant) 71 this.constant = constant; 86 this.constant = variableInstruction.constant; 274 constant = readSignedValue(code, offset, constantSize); 290 throw new IllegalArgumentException("Instruction has invalid constant size ("+this.toString(offset)+")"); 294 writeSignedValue(code, offset, constant, constantSize); 317 (constantSize() > 0 ? ", "+constant : "") [all...] |
/external/proguard/src/proguard/shrink/ |
ClassShrinker.java | 28 import proguard.classfile.constant.*; 34 * This ClassVisitor removes constant pool entries and class members that 71 // Shrink the arrays for constant pool, interfaces, fields, methods, 78 // Shrinking the constant pool also sets up an index map. 96 // and remap their references to the constant pool. 101 // Remap all constant pool references. 319 * constant pool. 322 private int shrinkConstantPool(Constant[] constantPool, int length) 332 // Shift the used constant pool entries together. 337 Constant constant = constantPool[index] local [all...] |
/external/clang/test/CodeGenCXX/ |
const-init.cpp | 5 // CHECK: @ar = constant i32* @a 9 // CHECK: @fr = constant void ()* @_Z1fv 49 // An initialized const automatic variable cannot be promoted to a constant 55 // CHECK-NOT: {{.*}}MM{{.*}} = {{.*}}constant 73 // CHECK: @i = constant i32* bitcast (float* @PR9558 to i32*) 77 // CHECK: @pastEnd = constant i32* bitcast (i8* getelementptr (i8* bitcast ([2 x i32]* @arr to i8*), i64 8) to i32*)
|
/external/clang/test/Sema/ |
format-strings-enum-fixed-type.cpp | 13 typedef enum : short { Constant = 0 } TestEnum; 14 // Note that in C (and Objective-C), the type of 'Constant' is 'short'. 20 printf("%hhd", Constant); // expected-warning{{format specifies type 'char'}} 23 printf("%hd", Constant); // no-warning 27 printf("%d", Constant); // no-warning 30 printf("%lld", Constant); // expected-warning{{format specifies type 'long long'}}
|
/external/llvm/include/llvm/IR/ |
GlobalAlias.h | 44 Constant* Aliasee = 0, Module *Parent = 0); 47 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant); 60 void setAliasee(Constant *GV); 61 const Constant *getAliasee() const { 64 Constant *getAliasee() { 89 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GlobalAlias, Constant)
|
/external/llvm/lib/Target/Hexagon/MCTargetDesc/ |
HexagonMCInst.h | 62 // Return whether the instruction needs to be constant extended. 65 // Return constant extended operand number. 77 // Return number of bits in the constant extended operand. 87 // Return true if the operand can be constant extended. 90 // Return the min value that a constant extendable operand can have 94 // Return the max value that a constant extendable operand can have
|
/external/llvm/test/Transforms/InstCombine/ |
strlen-1.ll | 7 @hello = constant [6 x i8] c"hello\00" 8 @null = constant [1 x i8] zeroinitializer 9 @null_hello = constant [7 x i8] c"\00hello\00" 10 @nullstring = constant i8 0 15 ; Check strlen(string constant) -> integer constant.
|
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
CstAnnotation.java | 22 * Constant type that represents an annotation. 24 public final class CstAnnotation extends Constant { 61 protected int compareTo0(Constant other) {
|