HomeSort by: relevance | last modified time | path
    Searched refs:Constant (Results 1 - 25 of 594) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/external/apache2/llvm/dist/llvm/lib/IR/
ConstantFold.h 1 //===-- ConstantFolding.h - Internal Constant Folding Interface -*- C++ -*-===//
9 // This file defines the (internal) constant folding interfaces for LLVM. These
14 // 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 --------------------------===//
9 // This file implements the Constant* classes.
37 // Constant Class
40 bool Constant::isNegativeZeroValue() const {
64 // Return true iff this constant is positive zero (floating point), negative
66 bool Constant::isZeroValue() const {
86 bool Constant::isNullValue() const {
95 // constant zero is zero for aggregates, cpnull is null for pointers, none for
101 bool Constant::isAllOnesValue() const {
110 // Check for constant vectors which are splats of -1 values
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
ConstantFolding.h 26 class Constant;
36 /// If this constant is a constant offset from a global, return the global and
37 /// the constant. Because of constantexprs, this function is recursive.
38 /// If the global is part of a dso_local_equivalent constant, return it through
40 bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset,
44 /// ConstantFoldInstruction - Try to constant fold the specified instruction.
45 /// If successful, the constant result is returned, if not, null is returned.
46 /// Note that this fails if not all of the operands are constant. Otherwise,
48 /// and stores, which have no constant expression form
    [all...]
TargetFolder.h 1 //====- TargetFolder.h - Constant folding helper ---------------*- C++ -*-====//
12 // folding that the ConstantFolder class provides. For general constant
35 /// Fold - Fold the constant using target specific information.
36 Constant *Fold(Constant *C) const {
49 Constant *CreateAdd(Constant *LHS, Constant *RHS,
53 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const override
    [all...]
TypeMetadataUtils.h 24 class Constant;
59 Constant *getPointerAtOffset(Constant *I, uint64_t Offset, Module &M);
  /src/external/apache2/llvm/dist/llvm/include/llvm/IR/
ConstantFolder.h 1 //===- ConstantFolder.h - Constant folding helper ---------------*- C++ -*-===//
11 // with minimal folding. For general constant creation and folding,
38 Constant *CreateAdd(Constant *LHS, Constant *RHS,
43 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const override {
47 Constant *CreateSub(Constant *LHS, Constant *RHS
    [all...]
IRBuilderFolder.h 9 // This file defines for constant folding interface used by IRBuilder.
23 /// IRBuilderFolder - Interface for constant folding in IRBuilder.
32 virtual Value *CreateAdd(Constant *LHS, Constant *RHS,
34 virtual Value *CreateFAdd(Constant *LHS, Constant *RHS) const = 0;
35 virtual Value *CreateSub(Constant *LHS, Constant *RHS,
37 virtual Value *CreateFSub(Constant *LHS, Constant *RHS) const = 0
    [all...]
Constants.h 1 //===-- llvm/Constants.h - Constant class subclass definitions --*- C++ -*-===//
10 /// This file contains the declarations for the subclasses of Constant,
11 /// which represent the different flavors of constant values that live in LLVM.
30 #include "llvm/IR/Constant.h"
51 class ConstantData : public Constant {
52 friend class Constant;
55 llvm_unreachable("Constant data does not have operands!");
59 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {}
76 /// Class for constant integers.
78 friend class Constant;
    [all...]
Constant.h 1 //===-- llvm/Constant.h - Constant class definition -------------*- C++ -*-===//
9 // 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 /// LLVM Constant Representation
41 class Constant : public User {
43 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps
    [all...]
NoFolder.h 1 //===- NoFolder.h - Constant folding helper ---------------------*- C++ -*-===//
12 // want details to be hidden by the constant folder. For general constant
44 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const override {
57 Instruction *CreateSub(Constant *LHS, Constant *RHS,
66 Instruction *CreateFSub(Constant *LHS, Constant *RHS) const override
    [all...]
GlobalIFunc.h 37 const Twine &Name, Constant *Resolver, Module *Parent);
47 Constant *Resolver, Module *Parent);
57 void setResolver(Constant *Resolver) {
60 const Constant *getResolver() const {
63 Constant *getResolver() {
GlobalIndirectSymbol.h 31 LinkageTypes Linkage, const Twine &Name, Constant *Symbol);
43 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant);
50 void setIndirectSymbol(Constant *Symbol) {
53 const Constant *getIndirectSymbol() const {
56 Constant *getIndirectSymbol() {
57 return const_cast<Constant *>(
90 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GlobalIndirectSymbol, Constant)
GlobalAlias.h 32 const Twine &Name, Constant *Aliasee, Module *Parent);
42 Constant *Aliasee, Module *Parent);
72 void setAliasee(Constant *Aliasee);
73 const Constant *getAliasee() const {
76 Constant *getAliasee() {
  /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
Evaluator.h 34 /// This class evaluates LLVM IR, producing the Constant representing each SSA
51 Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType()));
57 bool EvaluateFunction(Function *F, Constant *&RetVal,
58 const SmallVectorImpl<Constant*> &ActualArgs);
60 const DenseMap<Constant *, Constant *> &getMutatedMemory() const {
72 Constant *getVal(Value *V) {
73 if (Constant *CV = dyn_cast<Constant>(V)) return CV;
74 Constant *R = ValueStack.back().lookup(V)
    [all...]
GlobalStatus.h 16 class Constant;
20 /// It is safe to destroy a constant iff it is only used by constants itself.
24 bool isSafeToDestroyConstant(const Constant *C);
39 /// There is no store to this global. It can thus be marked constant.
42 /// This global is stored to, but the only thing stored is the constant it
57 /// If only one value (besides the initializer constant) is ever stored to
68 /// constant expr or GV initializer).
VNCoercion.h 25 class Constant;
79 // It only allows constant inputs.
80 Constant *getConstantStoreValueForLoad(Constant *SrcVal, unsigned Offset,
90 // a constant. It returns nullptr if it would require widening the load.
91 Constant *getConstantLoadValueForLoad(Constant *SrcVal, unsigned Offset,
102 // It returns nullptr if it cannot produce a constant.
103 Constant *getConstantMemInstValueForLoad(MemIntrinsic *SrcInst, unsigned Offset,
  /src/external/apache2/llvm/dist/llvm/lib/Target/X86/
X86ShuffleDecodeConstantPool.h 10 // constants from the constant pool.
22 class Constant;
25 /// Decode a PSHUFB mask from an IR-level vector constant.
26 void DecodePSHUFBMask(const Constant *C, unsigned Width,
29 /// Decode a VPERMILP variable mask from an IR-level vector constant.
30 void DecodeVPERMILPMask(const Constant *C, unsigned ElSize, unsigned Width,
33 /// Decode a VPERMILP2 variable mask from an IR-level vector constant.
34 void DecodeVPERMIL2PMask(const Constant *C, unsigned M2Z, unsigned ElSize,
37 /// Decode a VPPERM variable mask from an IR-level vector constant.
38 void DecodeVPPERMMask(const Constant *C, unsigned Width
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
PatternInit.h 13 class Constant;
22 llvm::Constant *initializationPatternFor(CodeGenModule &, llvm::Type *);
ConstantEmitter.h 1 //===--- ConstantEmitter.h - IR constant emission ---------------*- C++ -*-===//
37 /// Whether the constant-emission failed.
40 /// Whether we're in a constant context.
47 llvm::SmallVector<std::pair<llvm::Constant *, llvm::GlobalVariable*>, 4>
71 /// constant. If this succeeds, the emission must be finalized.
72 llvm::Constant *tryEmitForInitializer(const VarDecl &D);
73 llvm::Constant *tryEmitForInitializer(const Expr *E, LangAS destAddrSpace,
75 llvm::Constant *emitForInitializer(const APValue &value, LangAS destAddrSpace,
95 /// constant.
96 llvm::Constant *tryEmitAbstractForInitializer(const VarDecl &D)
    [all...]
Address.h 73 /// LLVM Constant.
76 ConstantAddress(llvm::Constant *pointer, CharUnits alignment)
83 llvm::Constant *getPointer() const {
84 return llvm::cast<llvm::Constant>(Address::getPointer());
97 return llvm::isa<llvm::Constant>(addr.getPointer());
100 return ConstantAddress(llvm::cast<llvm::Constant>(addr.getPointer()),
ConstantInitBuilder.cpp 23 if (Data.is<llvm::Constant*>()) {
24 return Data.get<llvm::Constant*>()->getType();
40 if (Data.is<llvm::Constant*>()) {
41 GV->setInitializer(Data.get<llvm::Constant*>());
52 ConstantInitBuilderBase::createFuture(llvm::Constant *initializer) {
67 ConstantInitBuilderBase::createGlobal(llvm::Constant *initializer,
70 bool constant,
75 constant,
88 llvm::Constant *initializer){
97 llvm::Constant *resolvedReference
274 auto constant = llvm::ConstantArray::get(type, elts); local
289 llvm::Constant *constant; local
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
ValueList.cpp 12 #include "llvm/IR/Constant.h"
85 if (Constant *PHC = dyn_cast<Constant>(&*OldV)) {
96 Constant *BitcodeReaderValueList::getConstantFwdRef(unsigned Idx, Type *Ty) {
106 report_fatal_error("Type mismatch in constant table!");
107 return cast<Constant>(V);
111 Constant *C = new ConstantPlaceHolder(Ty, Context);
148 /// constant. Instead of doing this, we look at all the uses and rewrite all
149 /// the place holders at once for any constant that uses a placeholder.
155 SmallVector<Constant *, 64> NewOps
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
LoopUnrollAnalyzer.cpp 10 // potential effects that loop unrolling might have, such as enabling constant
24 /// for expressions whose start value is also constant, which isn't always the
48 // Check if the AddRec expression becomes a constant.
54 // Check if the offset from the base address becomes a constant.
76 if (!isa<Constant>(LHS))
77 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS))
79 if (!isa<Constant>(RHS))
80 if (Constant *SimpleRHS = SimplifiedValues.lookup(RHS))
91 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
Evaluator.cpp 20 #include "llvm/IR/Constant.h"
47 isSimpleEnoughValueToCommit(Constant *C,
48 SmallPtrSetImpl<Constant *> &SimpleConstants,
51 /// Return true if the specified constant can be handled by the code generator.
60 isSimpleEnoughValueToCommitHelper(Constant *C,
61 SmallPtrSetImpl<Constant *> &SimpleConstants,
68 // Simple integer, undef, constant aggregate zero, etc are all supported.
75 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL))
80 // We don't know exactly what relocations are allowed in constant expressions,
98 // GEP is fine if it is simple + constant offset
    [all...]
CanonicalizeAliases.cpp 42 static Constant *canonicalizeAlias(Constant *C, bool &Changed) {
56 std::vector<Constant *> Ops;
58 Ops.push_back(canonicalizeAlias(cast<Constant>(U), Changed));

Completed in 58 milliseconds

1 2 3 4 5 6 7 8 91011>>