/external/llvm/lib/IR/ |
ConstantFold.h | 1 //===-- ConstantFolding.h - Internal Constant Folding Interface -*- C++ -*-===// 10 // This file defines the (internal) constant folding interfaces for LLVM. These 15 // the specified operation on the specified constant types. 26 class Constant; 29 // Constant fold various types of instruction... 30 Constant *ConstantFoldCastInstruction( 32 Constant *V, ///< The source constant 35 Constant *ConstantFoldSelectInstruction(Constant *Cond [all...] |
/external/clang/test/SemaTemplate/ |
instantiation-default-2.cpp | 3 template<typename T, T Value> struct Constant; // expected-note{{template parameter is declared here}} \ 6 Constant<int, 5> *c1; 11 Constant<int&, x> *c2; 12 Constant<int*, &x> *c3; 13 Constant<float (*)(int, double), f> *c4; 14 Constant<float (*)(int, double), &f> *c5; 16 Constant<float (*)(int, int), f> *c6; // expected-error{{non-type template argument of type 'float (int, double)' cannot be converted to a value of type 'float (*)(int, int)'}} 18 Constant<float, 0> *c7; // expected-note{{while substituting}}
|
/external/llvm/include/llvm/Support/ |
TargetFolder.h | 1 //====-- llvm/Support/TargetFolder.h - Constant folding helper -*- C++ -*-====// 13 // folding that the ConstantFolder class provides. For general constant 35 /// Fold - Fold the constant using target specific information. 36 Constant *Fold(Constant *C) const { 38 if (Constant *CF = ConstantFoldConstantExpression(CE, TD)) 50 Constant *CreateAdd(Constant *LHS, Constant *RHS, 54 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const [all...] |
ConstantFolder.h | 1 //===-- llvm/Support/ConstantFolder.h - Constant folding helper -*- C++ -*-===// 12 // with minimal folding. For general constant creation and folding, 34 Constant *CreateAdd(Constant *LHS, Constant *RHS, 38 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { 41 Constant *CreateSub(Constant *LHS, Constant *RHS [all...] |
NoFolder.h | 1 //======-- llvm/Support/NoFolder.h - Constant folding helper -*- C++ -*-======// 13 // want details to be hidden by the constant folder. For general constant 40 Instruction *CreateAdd(Constant *LHS, Constant *RHS, 47 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { 50 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { 53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const [all...] |
/external/llvm/include/llvm/Analysis/ |
ConstantFolding.h | 24 class Constant; 34 /// ConstantFoldInstruction - Try to constant fold the specified instruction. 35 /// If successful, the constant result is returned, if not, null is returned. 36 /// Note that this fails if not all of the operands are constant. Otherwise, 38 /// and stores, which have no constant expression form. 39 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout *TD = 0, 42 /// ConstantFoldConstantExpression - Attempt to fold the constant expression 43 /// using the specified DataLayout. If successful, the constant result is 45 Constant *ConstantFoldConstantExpression(const ConstantExpr *CE, 49 /// ConstantFoldInstOperands - Attempt to constant fold an instruction with th [all...] |
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
ConstantPool.java | 20 * Interface for constant pools, which are, more or less, just lists of 21 * {@link Constant} objects. 25 * Get the "size" of the constant pool. This corresponds to the 27 * always at least one more than the actual size of the constant pool, 35 * Get the {@code n}th entry in the constant pool, which must 38 * @param n {@code n >= 0, n < size();} the constant pool index 43 public Constant get(int n); 46 * Get the {@code n}th entry in the constant pool, which must 50 * @param n {@code n >= 0, n < size();} the constant pool index 55 public Constant get0Ok(int n) [all...] |
Constant.java | 24 public abstract class Constant 25 implements ToHuman, Comparable<Constant> { 27 * Returns {@code true} if this instance is a category-2 constant, 28 * meaning it takes up two slots in the constant pool, or 36 * Returns the human name for the particular type of constant 48 public final int compareTo(Constant other) { 67 protected abstract int compareTo0(Constant other);
|
StdConstantPool.java | 25 * an array of {@link Constant} objects and can be made immutable. 30 private final Constant[] entries; 37 * always at least one more than the actual size of the constant pool, 47 entries = new Constant[size]; 56 public Constant getOrNull(int n) { 66 public Constant get0Ok(int n) { 75 public Constant get(int n) { 77 Constant result = entries[n]; 94 * @param cst {@code null-ok;} the constant to store 96 public void set(int n, Constant cst) [all...] |
/dalvik/dx/src/com/android/dx/rop/cst/ |
ConstantPool.java | 20 * Interface for constant pools, which are, more or less, just lists of 21 * {@link Constant} objects. 25 * Get the "size" of the constant pool. This corresponds to the 27 * always at least one more than the actual size of the constant pool, 35 * Get the {@code n}th entry in the constant pool, which must 38 * @param n {@code n >= 0, n < size();} the constant pool index 43 public Constant get(int n); 46 * Get the {@code n}th entry in the constant pool, which must 50 * @param n {@code n >= 0, n < size();} the constant pool index 55 public Constant get0Ok(int n) [all...] |
Constant.java | 24 public abstract class Constant 25 implements ToHuman, Comparable<Constant> { 27 * Returns {@code true} if this instance is a category-2 constant, 28 * meaning it takes up two slots in the constant pool, or 36 * Returns the human name for the particular type of constant 48 public final int compareTo(Constant other) { 67 protected abstract int compareTo0(Constant other);
|
StdConstantPool.java | 25 * an array of {@link Constant} objects and can be made immutable. 30 private final Constant[] entries; 37 * always at least one more than the actual size of the constant pool, 47 entries = new Constant[size]; 56 public Constant getOrNull(int n) { 66 public Constant get0Ok(int n) { 75 public Constant get(int n) { 77 Constant result = entries[n]; 94 * @param cst {@code null-ok;} the constant to store 96 public void set(int n, Constant cst) [all...] |
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/ |
ConstantPool.java | 20 * Interface for constant pools, which are, more or less, just lists of 21 * {@link Constant} objects. 25 * Get the "size" of the constant pool. This corresponds to the 27 * always at least one more than the actual size of the constant pool, 35 * Get the {@code n}th entry in the constant pool, which must 38 * @param n {@code n >= 0, n < size();} the constant pool index 43 public Constant get(int n); 46 * Get the {@code n}th entry in the constant pool, which must 50 * @param n {@code n >= 0, n < size();} the constant pool index 55 public Constant get0Ok(int n) [all...] |
Constant.java | 24 public abstract class Constant 25 implements ToHuman, Comparable<Constant> { 27 * Returns {@code true} if this instance is a category-2 constant, 28 * meaning it takes up two slots in the constant pool, or 36 * Returns the human name for the particular type of constant 48 public final int compareTo(Constant other) { 67 protected abstract int compareTo0(Constant other);
|
StdConstantPool.java | 25 * an array of {@link Constant} objects and can be made immutable. 30 private final Constant[] entries; 37 * always at least one more than the actual size of the constant pool, 47 entries = new Constant[size]; 56 public Constant getOrNull(int n) { 66 public Constant get0Ok(int n) { 75 public Constant get(int n) { 77 Constant result = entries[n]; 94 * @param cst {@code null-ok;} the constant to store 96 public void set(int n, Constant cst) [all...] |
/external/llvm/include/llvm/IR/ |
Constants.h | 1 //===-- llvm/Constants.h - Constant class subclass definitions --*- C++ -*-===// 11 /// This file contains the declarations for the subclasses of Constant, 12 /// which represent the different flavors of constant values that live in LLVM. 15 /// equivalent constants will always have the same address. Constant's are 27 #include "llvm/IR/Constant.h" 49 /// @brief Class for constant integers. 50 class ConstantInt : public Constant { 64 static Constant *getTrue(Type *Ty); 65 static Constant *getFalse(Type *Ty); 67 /// If Ty is a vector type, return a Constant with a splat of the give [all...] |
Constant.h | 1 //===-- llvm/Constant.h - Constant class definition -------------*- C++ -*-===// 10 // This file contains the declaration of the Constant class. 25 /// of all constant values in an LLVM program. A constant is a value that is 32 /// or expression based (computations yielding a constant value composed of 33 /// only certain operators and other constant values). 40 /// @brief LLVM Constant Representation 41 class Constant : public User { 42 void operator=(const Constant &) LLVM_DELETED_FUNCTION [all...] |
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)
|
/dalvik/dx/src/com/android/dx/cf/attrib/ |
AttAnnotationDefault.java | 19 import com.android.dx.rop.cst.Constant; 29 private final Constant value; 42 public AttAnnotationDefault(Constant value, int byteLength) { 64 public Constant getValue() {
|
/external/clang/test/Sema/ |
format-strings-enum.c | 15 typedef enum { Constant = 0 } TestEnum; 16 // Note that in C, the type of 'Constant' is 'int'. In C++ it is 'TestEnum'. 21 printf("%d", Constant); // no-warning 24 printf("%lld", Constant); // expected-warning{{format specifies type 'long long'}}
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
CstInsn.java | 19 import com.android.dexgen.rop.cst.Constant; 22 * Instruction which contains an explicit reference to a constant. 26 /** {@code non-null;} the constant */ 27 private final Constant cst; 36 * @param cst {@code non-null;} constant 39 RegisterSpecList sources, Constant cst) { 56 * Gets the constant. 58 * @return {@code non-null;} the constant 60 public Constant getConstant() {
|
FillArrayDataInsn.java | 19 import com.android.dexgen.rop.cst.Constant; 28 * constant values. 34 private final ArrayList<Constant> initValues; 40 private final Constant arrayType; 53 ArrayList<Constant> initValues, 54 Constant cst) { 76 public ArrayList<Constant> getInitValues() { 84 public Constant getConstant() {
|
/dalvik/dx/src/com/android/dx/rop/code/ |
CstInsn.java | 19 import com.android.dx.rop.cst.Constant; 22 * Instruction which contains an explicit reference to a constant. 26 /** {@code non-null;} the constant */ 27 private final Constant cst; 36 * @param cst {@code non-null;} constant 39 RegisterSpecList sources, Constant cst) { 56 * Gets the constant. 58 * @return {@code non-null;} the constant 60 public Constant getConstant() {
|
FillArrayDataInsn.java | 19 import com.android.dx.rop.cst.Constant; 28 * constant values. 34 private final ArrayList<Constant> initValues; 40 private final Constant arrayType; 53 ArrayList<Constant> initValues, 54 Constant cst) { 76 public ArrayList<Constant> getInitValues() { 84 public Constant getConstant() {
|
/external/dexmaker/src/dx/java/com/android/dx/rop/code/ |
CstInsn.java | 19 import com.android.dx.rop.cst.Constant; 22 * Instruction which contains an explicit reference to a constant. 26 /** {@code non-null;} the constant */ 27 private final Constant cst; 36 * @param cst {@code non-null;} constant 39 RegisterSpecList sources, Constant cst) { 56 * Gets the constant. 58 * @return {@code non-null;} the constant 60 public Constant getConstant() {
|