HomeSort by relevance Sort by last modified time
    Searched refs:Constant (Results 1 - 25 of 497) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/llvm/lib/VMCore/
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...]
Constants.cpp 1 //===-- Constants.cpp - Implement Constant nodes --------------------------===//
10 // This file implements the Constant* classes.
40 // Constant Class
43 bool Constant::isNegativeZeroValue() const {
52 bool Constant::isNullValue() const {
61 // constant zero is zero for aggregates and cpnull is null for pointers.
65 bool Constant::isAllOnesValue() const {
74 // Check for constant vectors
80 // Constructor to create a '0' constant of arbitrary type...
81 Constant *Constant::getNullValue(Type *Ty)
    [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/Analysis/
ConstantFolding.h 24 class Constant;
33 /// ConstantFoldInstruction - Try to constant fold the specified instruction.
34 /// If successful, the constant result is returned, if not, null is returned.
35 /// Note that this fails if not all of the operands are constant. Otherwise,
37 /// and stores, which have no constant expression form.
38 Constant *ConstantFoldInstruction(Instruction *I, const TargetData *TD = 0);
40 /// ConstantFoldConstantExpression - Attempt to fold the constant expression
41 /// using the specified TargetData. If successful, the constant result is
43 Constant *ConstantFoldConstantExpression(const ConstantExpr *CE,
46 /// ConstantFoldInstOperands - Attempt to constant fold an instruction with th
    [all...]
LazyValueInfo.h 21 class Constant;
48 /// with a constant is known to be true or false on the specified CFG edge.
50 Tristate getPredicateOnEdge(unsigned Pred, Value *V, Constant *C,
55 /// constant at the end of the specified block. Return null if not.
56 Constant *getConstant(Value *V, BasicBlock *BB);
59 /// constant on the specified edge. Return null if not.
60 Constant *getConstantOnEdge(Value *V, BasicBlock *FromBB, BasicBlock *ToBB);
  /external/llvm/include/llvm/
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
24 #include "llvm/Constant.h"
46 /// @brief Class for constant integers.
47 class ConstantInt : public Constant {
60 static Constant *getTrue(Type *Ty);
61 static Constant *getFalse(Type *Ty);
63 /// 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 &); // Do not implemen
    [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() {
90 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GlobalAlias, Constant)
  /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...]
  /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...]
CstArray.java 23 * Constant type to represent a fixed array of other constants. The contents
26 public final class CstArray extends Constant {
63 protected int compareTo0(Constant other) {
100 * List of {@link Constant} instances.
121 Constant thisItem = (Constant) get0(i);
122 Constant otherItem = (Constant) other.get0(i);
146 public Constant get(int n) {
147 return (Constant) get0(n)
    [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...]
CstArray.java 23 * Constant type to represent a fixed array of other constants.
25 public final class CstArray extends Constant {
62 protected int compareTo0(Constant other) {
99 * List of {@link Constant} instances.
120 Constant thisItem = (Constant) get0(i);
121 Constant otherItem = (Constant) other.get0(i);
145 public Constant get(int n) {
146 return (Constant) get0(n)
    [all...]
  /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() {
  /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/clang/lib/CodeGen/
CodeGenModule.h 35 class Constant;
145 llvm::Constant *objc_autoreleasePoolPop;
148 llvm::Constant *objc_autoreleasePoolPush;
155 llvm::Constant *objc_autorelease;
158 llvm::Constant *objc_autoreleaseReturnValue;
161 llvm::Constant *objc_copyWeak;
164 llvm::Constant *objc_destroyWeak;
167 llvm::Constant *objc_initWeak;
170 llvm::Constant *objc_loadWeak;
173 llvm::Constant *objc_loadWeakRetained
    [all...]

Completed in 293 milliseconds

1 2 3 4 5 6 7 8 91011>>