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

1234567891011>>

/freebsd-10.0-release/contrib/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...]
H A DConstantFold.cpp41 /// BitCastConstantVector - Convert the specified vector Constant node to the
44 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) {
46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy);
47 if (CV->isNullValue()) return Constant::getNullValue(DstTy);
58 SmallVector<Constant*, 16> Result;
61 Constant *C =
99 static Constant *FoldBitCast(Constant *V, Type *DestTy) {
112 Constant
[all...]
/freebsd-10.0-release/contrib/llvm/include/llvm/Support/
H A DTargetFolder.h1 //====-- llvm/Support/TargetFolder.h - Constant folding helper -*- C++ -*-====//
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 *RH
[all...]
H A DConstantFolder.h1 //===-- llvm/Support/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 DNoFolder.h1 //======-- llvm/Support/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...]
/freebsd-10.0-release/contrib/llvm/include/llvm/Analysis/
H A DConstantFolding.h24 class Constant;
39 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout *TD = 0,
45 Constant *ConstantFoldConstantExpression(const ConstantExpr *CE,
55 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
56 ArrayRef<Constant *> Ops,
64 Constant *ConstantFoldCompareInstOperands(unsigned Predicate,
65 Constant *LHS, Constant *RHS,
72 Constant *ConstantFoldInsertValueInstruction(Constant *Ag
[all...]
H A DConstantsScanner.h23 class Constant;
26 const Constant, ptrdiff_t> {
35 return isa<Constant>(InstI->getOperand(OpIdx));
56 return cast<Constant>(InstI->getOperand(OpIdx));
H A DLazyValueInfo.h21 class Constant;
52 Tristate getPredicateOnEdge(unsigned Pred, Value *V, Constant *C,
58 Constant *getConstant(Value *V, BasicBlock *BB);
62 Constant *getConstantOnEdge(Value *V, BasicBlock *FromBB, BasicBlock *ToBB);
/freebsd-10.0-release/contrib/llvm/include/llvm/IR/
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
104 Constant *getAggregateElemen
[all...]
H A DGlobalAlias.h44 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)
H A DGlobalVariable.h31 class Constant;
69 Constant *Initializer = 0, const Twine &Name = "",
75 LinkageTypes Linkage, Constant *Initializer,
140 inline const Constant *getInitializer() const {
142 return static_cast<Constant*>(Op<0>().get());
144 inline Constant *getInitializer() {
146 return static_cast<Constant*>(Op<0>().get());
151 void setInitializer(Constant *InitVal);
191 /// Override Constant's implementation of this method so we can
H A DIRBuilder.h459 Constant *Insert(Constant *C, const Twine& = "") const {
594 if (Constant *LC = dyn_cast<Constant>(LHS))
595 if (Constant *RC = dyn_cast<Constant>(RHS))
608 if (Constant *LC = dyn_cast<Constant>(LHS))
609 if (Constant *RC = dyn_cast<Constant>(RH
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenModule.h38 class Constant;
159 llvm::Constant *objc_autoreleasePoolPop;
162 llvm::Constant *objc_autoreleasePoolPush;
169 llvm::Constant *objc_autorelease;
172 llvm::Constant *objc_autoreleaseReturnValue;
175 llvm::Constant *objc_copyWeak;
178 llvm::Constant *objc_destroyWeak;
181 llvm::Constant *objc_initWeak;
184 llvm::Constant *objc_loadWeak;
187 llvm::Constant *objc_loadWeakRetaine
[all...]
H A DCGObjCRuntime.h25 class Constant;
100 llvm::Constant *beginCatchFn,
101 llvm::Constant *endCatchFn,
102 llvm::Constant *exceptionRethrowFn);
133 virtual llvm::Constant *GetEHType(QualType T) = 0;
136 virtual llvm::Constant *GenerateConstantString(const StringLiteral *) = 0;
199 virtual llvm::Constant *GetPropertyGetFunction() = 0;
202 virtual llvm::Constant *GetPropertySetFunction() = 0;
205 virtual llvm::Constant *GetOptimizedPropertySetFunction(bool atomic,
209 virtual llvm::Constant *GetGetStructFunctio
[all...]
H A DCGObjCGNU.cpp51 llvm::Constant *Function;
77 operator llvm::Constant*() {
85 cast<llvm::Constant>(CGM->CreateRuntimeFunction(FTy, FunctionName));
93 return cast<llvm::Function>((llvm::Constant*)*this);
171 llvm::Constant *MakeConstantString(const std::string &Str,
173 llvm::Constant *ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str());
180 llvm::Constant *ExportUniqueString(const std::string &Str,
183 llvm::Constant *ConstStr = TheModule.getGlobalVariable(name);
185 llvm::Constant *value = llvm::ConstantDataArray::getString(VMContext,Str);
195 ArrayRef<llvm::Constant *>
[all...]
H A DCGExprConstant.cpp1 //===--- CGExprConstant.cpp - Emit LLVM Code from Constant Expressions ----===//
10 // This contains code to emit Constant Expr nodes as LLVM code.
43 SmallVector<llvm::Constant *, 32> Elements;
45 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF,
47 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF,
56 void AppendVTablePointer(BaseSubobject Base, llvm::Constant *VTable,
60 llvm::Constant *InitExpr);
62 void AppendBytes(CharUnits FieldOffsetInChars, llvm::Constant *InitCst);
75 llvm::Constant *VTable, const CXXRecordDecl *VTableClass,
77 llvm::Constant *Finaliz
[all...]
H A DCGObjCMac.cpp60 llvm::Constant *getMessageSendFn() const {
78 llvm::Constant *getMessageSendStretFn() const {
91 llvm::Constant *getMessageSendFpretFn() const {
104 llvm::Constant *getMessageSendFp2retFn() const {
120 llvm::Constant *getMessageSendSuperFn() const {
131 llvm::Constant *getMessageSendSuperFn2() const {
142 llvm::Constant *getMessageSendSuperStretFn() const {
153 llvm::Constant *getMessageSendSuperStretFn2() const {
160 llvm::Constant *getMessageSendSuperFpretFn() const {
165 llvm::Constant *getMessageSendSuperFpretFn
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp29 Constant *RuntimeCtorInit = ConstantStruct::get(
34 SmallVector<Constant *, 16> CurrentCtors;
36 if (Constant *Init = GVCtor->getInitializer()) {
40 CurrentCtors.push_back(cast<Constant>(Init->getOperand(i)));
50 Constant *NewInit = ConstantArray::get(AT, CurrentCtors);
/freebsd-10.0-release/contrib/llvm/lib/Analysis/
H A DConstantFolding.cpp42 // Constant Folding internal helper functions
45 /// FoldBitCast - Constant fold bitcast, symbolically evaluating it with
48 static Constant *FoldBitCast(Constant *C, Type *DestTy,
52 return Constant::getNullValue(DestTy);
54 return Constant::getAllOnesValue(DestTy);
102 Constant *Ops = C; // don't take the address of C!
161 SmallVector<Constant*, 32> Result;
164 Constant *Zero = Constant
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Analysis/IPA/
H A DInlineCost.cpp76 DenseMap<Value *, Constant *> SimplifiedValues;
239 if (!isa<Constant>(*I) && !SimplifiedValues.lookup(*I))
260 if (Constant *SimpleOp = SimplifiedValues.lookup(GTI.getOperand()))
354 // Constant GEPs are modeled as free.
366 Constant *COp = dyn_cast<Constant>(I.getOperand(0));
370 if (Constant *C = ConstantExpr::getBitCast(COp, I.getType())) {
394 Constant *COp = dyn_cast<Constant>(I.getOperand(0));
398 if (Constant *
[all...]
/freebsd-10.0-release/contrib/llvm/include/llvm/CodeGen/
H A DMachineConstantPool.h1 //===-- CodeGen/MachineConstantPool.h - Abstract Constant Pool --*- C++ -*-===//
26 class Constant;
52 /// so. The return values are the same as Constant::getRelocationInfo().
79 const Constant *ConstVal;
87 MachineConstantPoolEntry(const Constant *V, unsigned A)
99 /// Constant.
153 unsigned getConstantPoolIndex(const Constant *C, unsigned Alignment);
/freebsd-10.0-release/contrib/llvm/include/llvm/Transforms/Utils/
H A DValueMapper.h71 inline Constant *MapValue(const Constant *V, ValueToValueMapTy &VM,
74 return cast<Constant>(MapValue((const Value*)V, VM, Flags, TypeMapper));
/freebsd-10.0-release/contrib/llvm/lib/Transforms/Instrumentation/
H A DProfilingUtils.cpp33 Constant *InitFn = M.getOrInsertFunction(FnName, Type::getInt32Ty(Context),
42 Args[0] = Constant::getNullValue(Type::getInt32Ty(Context));
43 Args[1] = Constant::getNullValue(ArgVTy);
50 std::vector<Constant*> GEPIndices(2,
51 Constant::getNullValue(Type::getInt32Ty(Context)));
118 std::vector<Constant*> Indices(2);
119 Indices[0] = Constant::getNullValue(Type::getInt32Ty(Context));
121 Constant *ElementPtr =
143 Constant *Elem[2] = {
150 std::vector<Constant *> dtor
[all...]

Completed in 305 milliseconds

1234567891011>>