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

1234567891011>>

/netbsd-current/external/apache2/llvm/dist/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 --------------------------===//
9 // This file implements the Constant* classes.
37 // Constant Class
40 bool Constant::isNegativeZeroValue() const {
66 bool Constant::isZeroValue() const {
86 bool Constant::isNullValue() const {
101 bool Constant::isAllOnesValue() const {
112 if (Constant *Splat = CV->getSplatValue())
127 bool Constant::isOneValue() const {
138 if (Constant *Spla
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DConstantFolding.h26 class Constant;
40 bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset,
49 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL,
55 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL,
64 Constant *ConstantFoldInstOperands(Instruction *I, ArrayRef<Constant *> Ops,
72 Constant *
73 ConstantFoldCompareInstOperands(unsigned Predicate, Constant *LHS,
74 Constant *RH
[all...]
H A DTargetFolder.h1 //====- TargetFolder.h - Constant folding helper ---------------*- C++ -*-====//
36 Constant *Fold(Constant *C) const {
49 Constant *CreateAdd(Constant *LHS, Constant *RHS,
53 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const override {
56 Constant *CreateSu
[all...]
H A DTypeMetadataUtils.h24 class Constant;
59 Constant *getPointerAtOffset(Constant *I, uint64_t Offset, Module &M);
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantFolder.h1 //===- ConstantFolder.h - Constant folding helper ---------------*- C++ -*-===//
38 Constant *CreateAdd(Constant *LHS, Constant *RHS,
43 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const override {
47 Constant *CreateSub(Constant *LHS, Constant *RH
[all...]
H A DIRBuilderFolder.h32 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;
38 virtual Value *CreateMul(Constant *LHS, Constant *RH
[all...]
H A DConstants.h1 //===-- llvm/Constants.h - Constant class subclass definitions --*- C++ -*-===//
10 /// This file contains the declarations for the subclasses of Constant,
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) {}
78 friend class Constant;
92 static Constant *getTrue(Type *Ty);
93 static Constant *getFals
[all...]
H A DConstant.h1 //===-- llvm/Constant.h - Constant class definition -------------*- C++ -*-===//
9 // This file contains the declaration of the Constant class.
40 /// LLVM Constant Representation
41 class Constant : public User { class in namespace:llvm
43 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) function in class:llvm::Constant
46 ~Constant() = default;
49 void operator=(const Constant &) = delete;
50 Constant(const Constant
[all...]
H A DNoFolder.h1 //===- NoFolder.h - Constant folding helper ---------------------*- C++ -*-===//
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 {
70 Instruction *CreateMul(Constant *LH
[all...]
H A DGlobalIFunc.h37 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() {
H A DGlobalIndirectSymbol.h31 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)
H A DGlobalAlias.h32 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() {
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h34 /// 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 *
[all...]
H A DGlobalStatus.h16 class Constant;
24 bool isSafeToDestroyConstant(const Constant *C);
H A DVNCoercion.h25 class Constant;
80 Constant *getConstantStoreValueForLoad(Constant *SrcVal, unsigned Offset,
91 Constant *getConstantLoadValueForLoad(Constant *SrcVal, unsigned Offset,
103 Constant *getConstantMemInstValueForLoad(MemIntrinsic *SrcInst, unsigned Offset,
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86ShuffleDecodeConstantPool.h22 class Constant;
26 void DecodePSHUFBMask(const Constant *C, unsigned Width,
30 void DecodeVPERMILPMask(const Constant *C, unsigned ElSize, unsigned Width,
34 void DecodeVPERMIL2PMask(const Constant *C, unsigned M2Z, unsigned ElSize,
38 void DecodeVPPERMMask(const Constant *C, unsigned Width,
/netbsd-current/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DPatternInit.h13 class Constant;
22 llvm::Constant *initializationPatternFor(CodeGenModule &, llvm::Type *);
H A DConstantEmitter.h47 llvm::SmallVector<std::pair<llvm::Constant *, llvm::GlobalVariable*>, 4>
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,
96 llvm::Constant *tryEmitAbstractForInitializer(const VarDecl &D);
102 llvm::Constant *emitAbstract(const Expr *E, QualType T);
103 llvm::Constant *emitAbstract(SourceLocation loc, const APValue &value,
107 llvm::Constant *tryEmitAbstract(const Expr *E, QualType T);
108 llvm::Constant *tryEmitAbstractForMemory(const Expr *E, QualType T);
110 llvm::Constant *tryEmitAbstrac
[all...]
H A DAddress.h73 /// 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()),
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DValueList.cpp12 #include "llvm/IR/Constant.h"
85 if (Constant *PHC = dyn_cast<Constant>(&*OldV)) {
96 Constant *BitcodeReaderValueList::getConstantFwdRef(unsigned Idx, Type *Ty) {
107 return cast<Constant>(V);
111 Constant *C = new ConstantPlaceHolder(Ty, Context);
155 SmallVector<Constant *, 64> NewOps;
159 Constant *Placeholder = ResolveConstants.back().first;
171 if (!isa<Constant>(U) || isa<GlobalValue>(U)) {
178 Constant *User
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp76 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))
141 Constant *CV = CDS->getElementAsConstant(Index);
142 assert(CV && "Constant expected.");
151 Constant *COp = dyn_cast<Constant>(
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp20 #include "llvm/IR/Constant.h"
47 isSimpleEnoughValueToCommit(Constant *C,
48 SmallPtrSetImpl<Constant *> &SimpleConstants,
60 isSimpleEnoughValueToCommitHelper(Constant *C,
61 SmallPtrSetImpl<Constant *> &SimpleConstants,
75 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL))
115 isSimpleEnoughValueToCommit(Constant *C,
116 SmallPtrSetImpl<Constant *> &SimpleConstants,
130 static bool isSimpleEnoughPointerToCommit(Constant *C, const DataLayout &DL) {
181 static Constant *
[all...]
H A DCanonicalizeAliases.cpp42 static Constant *canonicalizeAlias(Constant *C, bool &Changed) {
56 std::vector<Constant *> Ops;
58 Ops.push_back(canonicalizeAlias(cast<Constant>(U), Changed));
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/s12z/
H A Dcmp-opr-xys.s0 ;; Constant offset from xys

Completed in 313 milliseconds

1234567891011>>