Searched refs:Constant (Results 1 - 25 of 588) sorted by relevance

1234567891011>>

/external/llvm/lib/IR/
H A DConstantFold.h1 //===-- ConstantFolding.h - Internal Constant Folding Interface -*- C++ -*-===//
26 class Constant;
29 // Constant fold various types of instruction...
30 Constant *ConstantFoldCastInstruction(
32 Constant *V, ///< The source constant
35 Constant *ConstantFoldSelectInstruction(Constant *Cond,
36 Constant *V1, Constant *V2);
37 Constant *ConstantFoldExtractElementInstructio
[all...]
H A DConstants.cpp1 //===-- Constants.cpp - Implement Constant nodes --------------------------===//
10 // This file implements the Constant* classes.
40 // Constant Class
43 void Constant::anchor() { }
45 bool Constant::isNegativeZeroValue() const {
66 bool Constant::isZeroValue() const {
75 bool Constant::isNullValue() const {
88 bool Constant::isAllOnesValue() const {
99 if (Constant *Splat = CV->getSplatValue())
104 if (Constant *Spla
[all...]
/external/clang/test/SemaTemplate/
H A Dinstantiation-default-2.cpp3 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/
H A DTargetFolder.h1 //====- TargetFolder.h - Constant folding helper ---------------*- C++ -*-====//
36 Constant *Fold(Constant *C) const {
38 if (Constant *CF = ConstantFoldConstantExpression(CE, DL))
50 Constant *CreateAdd(Constant *LHS, Constant *RHS,
54 Constant *CreateFAdd(Constant *LHS, Constant *RH
[all...]
H A DConstantFolding.h24 class Constant;
39 Constant *ConstantFoldInstruction(Instruction *I,
46 Constant *ConstantFoldConstantExpression(const ConstantExpr *CE,
56 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
57 ArrayRef<Constant *> Ops,
65 Constant *ConstantFoldCompareInstOperands(unsigned Predicate,
66 Constant *LHS, Constant *RHS,
73 Constant *ConstantFoldInsertValueInstruction(Constant *Ag
[all...]
/external/llvm/include/llvm/IR/
H A DConstantFolder.h1 //===- ConstantFolder.h - Constant folding helper ---------------*- C++ -*-===//
34 Constant *CreateAdd(Constant *LHS, Constant *RHS,
38 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const {
41 Constant *CreateSub(Constant *LHS, Constant *RH
[all...]
H A DConstants.h1 //===-- llvm/Constants.h - Constant class subclass definitions --*- C++ -*-===//
11 /// This file contains the declarations for the subclasses of Constant,
15 /// equivalent constants will always have the same address. Constant's are
27 #include "llvm/IR/Constant.h"
51 class ConstantInt : public Constant {
65 static Constant *getTrue(Type *Ty);
66 static Constant *getFalse(Type *Ty);
68 /// If Ty is a vector type, return a Constant with a splat of the given
70 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false);
87 static Constant *getSigne
[all...]
H A DConstant.h1 //===-- llvm/Constant.h - Constant class definition -------------*- C++ -*-===//
10 // This file contains the declaration of the Constant class.
40 /// @brief LLVM Constant Representation
41 class Constant : public User { class in namespace:llvm
42 void operator=(const Constant &) LLVM_DELETED_FUNCTION;
43 Constant(const Constant &) LLVM_DELETED_FUNCTION;
47 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) function in class:llvm::Constant
110 Constant *getAggregateElemen
[all...]
H A DNoFolder.h1 //===- NoFolder.h - Constant folding helper ---------------------*- C++ -*-===//
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 {
56 Instruction *CreateSub(Constant *LH
[all...]
H A DGlobalVariable.h31 class Constant;
58 Constant *Initializer = nullptr, const Twine &Name = "",
64 LinkageTypes Linkage, Constant *Initializer,
127 inline const Constant *getInitializer() const {
129 return static_cast<Constant*>(Op<0>().get());
131 inline Constant *getInitializer() {
133 return static_cast<Constant*>(Op<0>().get());
138 void setInitializer(Constant *InitVal);
168 /// Override Constant's implementation of this method so we can
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/
H A DConstantPool.java21 * {@link Constant} objects.
43 public Constant get(int n);
55 public Constant get0Ok(int n);
69 public Constant getOrNull(int n);
H A DConstant.java24 public abstract class Constant class in inherits:ToHuman,Comparable
25 implements ToHuman, Comparable<Constant> {
48 public final int compareTo(Constant other) {
67 protected abstract int compareTo0(Constant other);
H A DStdConstantPool.java25 * an array of {@link Constant} objects and can be made immutable.
30 private final Constant[] entries;
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];
96 public void set(int n, Constant cst) {
119 Constant prev = entries[n - 1];
135 private static Constant throwInvali
[all...]
H A DCstArray.java23 * 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) get
[all...]
/external/clang/test/Sema/
H A Dformat-strings-enum.c15 typedef enum { Constant = 0 } TestEnum; enumerator in enum:__anon19113
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'}}
H A Dformat-strings-enum-fixed-type.cpp13 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/dexmaker/src/dx/java/com/android/dx/rop/code/
H A DCstInsn.java19 import com.android.dx.rop.cst.Constant;
27 private final Constant cst;
39 RegisterSpecList sources, Constant cst) {
60 public Constant getConstant() {
H A DFillArrayDataInsn.java19 import com.android.dx.rop.cst.Constant;
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/llvm/lib/CodeGen/AsmPrinter/
H A DDebugLocEntry.h31 Constant.Int = i;
35 Constant.CFP = CFP;
39 Constant.CIP = CIP;
57 } Constant; member in struct:llvm::DebugLocEntry::Value
70 return Constant.Int == other.Constant.Int;
72 return Constant.CFP == other.Constant.CFP;
74 return Constant.CIP == other.Constant
[all...]
/external/llvm/lib/Transforms/ObjCARC/
H A DARCRuntimeEntryPoints.h72 Constant *get(const EntryPointType entry) {
108 Constant *AutoreleaseRV;
110 Constant *Release;
112 Constant *Retain;
114 Constant *RetainBlock;
116 Constant *Autorelease;
118 Constant *StoreStrong;
120 Constant *RetainRV;
122 Constant *RetainAutorelease;
124 Constant *RetainAutoreleaseR
[all...]
/external/clang/lib/CodeGen/
H A DCodeGenModule.h38 class Constant;
155 llvm::Constant *objc_autoreleasePoolPop;
158 llvm::Constant *objc_autoreleasePoolPush;
165 llvm::Constant *objc_autorelease;
168 llvm::Constant *objc_autoreleaseReturnValue;
171 llvm::Constant *objc_copyWeak;
174 llvm::Constant *objc_destroyWeak;
177 llvm::Constant *objc_initWeak;
180 llvm::Constant *objc_loadWeak;
183 llvm::Constant *objc_loadWeakRetaine
[all...]
/external/chromium_org/v8/test/cctest/compiler/
H A Dtest-js-constant-cache.cc59 CHECK_EQ(zero, T.Constant(0));
60 CHECK_NE(zero, T.Constant(-0.0));
61 CHECK_NE(zero, T.Constant(1.0));
62 CHECK_NE(zero, T.Constant(v8::base::OS::nan_value()));
80 Node* minus_zero = T.Constant(-0.0);
84 CHECK_EQ(minus_zero, T.Constant(-0.0));
110 Node* zero = T.Constant(0);
114 CHECK_NE(zero, T.Constant(-0.0));
115 CHECK_NE(zero, T.Constant(1.0));
116 CHECK_NE(zero, T.Constant(v
[all...]
/external/proguard/src/proguard/classfile/editor/
H A DConstantPoolSorter.java24 import proguard.classfile.constant.Constant;
43 private Constant[] newConstantPool = new Constant[ClassConstants.TYPICAL_CONSTANT_POOL_SIZE];
59 newConstantPool = new Constant[constantPoolCount];
66 Constant constant = programClass.constantPool[oldIndex];
92 Constant constant = comparableConstant.getConstant();
/external/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/
H A Dp3-nodeduct.cpp9 template<typename T, T* Address> struct Constant { }; struct
10 Constant<void(int), &f<int> > constant0;
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
H A DHeaderSection.java19 import com.android.dx.rop.cst.Constant;
48 public IndexedItem get(Constant cst) {

Completed in 479 milliseconds

1234567891011>>