| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | ConstantFolder.h | 36 Constant *CreateAdd(Constant *LHS, Constant *RHS, 41 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() 45 Constant *CreateSub(Constant *LHS, Constant *RHS, 50 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() 54 Constant *CreateMul(Constant *LHS, Constant *RHS, 63 Constant *CreateUDiv(Constant *LHS, Constant *RHS, 68 Constant *CreateSDiv(Constant *LHS, Constant *RHS, 89 Constant *CreateShl(Constant *LHS, Constant *RHS, 94 Constant *CreateLShr(Constant *LHS, Constant *RHS, 99 Constant *CreateAShr(Constant *LHS, Constant *RHS, [all …]
|
| H A D | Constants.h | 932 static Constant *getAdd(Constant *C1, Constant *C2, 934 static Constant *getFAdd(Constant *C1, Constant *C2); 935 static Constant *getSub(Constant *C1, Constant *C2, 938 static Constant *getMul(Constant *C1, Constant *C2, 947 static Constant *getAnd(Constant *C1, Constant *C2); 948 static Constant *getOr(Constant *C1, Constant *C2); 949 static Constant *getXor(Constant *C1, Constant *C2); 950 static Constant *getShl(Constant *C1, Constant *C2, 1118 static Constant *getSelect(Constant *C, Constant *V1, Constant *V2, 1199 static Constant *getInsertElement(Constant *Vec, Constant *Elt, Constant *Idx, [all …]
|
| H A D | NoFolder.h | 42 Instruction *CreateAdd(Constant *LHS, Constant *RHS, 58 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() 62 Instruction *CreateSub(Constant *LHS, Constant *RHS, 78 Instruction *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() 82 Instruction *CreateMul(Constant *LHS, Constant *RHS, 102 Instruction *CreateUDiv(Constant *LHS, Constant *RHS, 113 Instruction *CreateSDiv(Constant *LHS, Constant *RHS, 148 Instruction *CreateLShr(Constant *LHS, Constant *RHS, 155 Instruction *CreateAShr(Constant *LHS, Constant *RHS, 211 Constant *CreateGetElementPtr(Type *Ty, Constant *C, in CreateGetElementPtr() [all …]
|
| H A D | Constant.h | 42 class Constant : public User { 48 void operator=(const Constant &) = delete; 49 Constant(const Constant &) = delete; 119 Constant *getAggregateElement(unsigned Elt) const; 120 Constant *getAggregateElement(Constant *Elt) const; 124 Constant *getSplatValue() const; 157 static Constant *getNullValue(Type* Ty); 162 static Constant *getAllOnesValue(Type* Ty); 174 const Constant *stripPointerCasts() const { in stripPointerCasts() 178 Constant *stripPointerCasts() { in stripPointerCasts() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | TargetFolder.h | 49 Constant *CreateAdd(Constant *LHS, Constant *RHS, 53 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() 56 Constant *CreateSub(Constant *LHS, Constant *RHS, 60 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() 63 Constant *CreateMul(Constant *LHS, Constant *RHS, 67 Constant *CreateFMul(Constant *LHS, Constant *RHS) const { in CreateFMul() 76 Constant *CreateFDiv(Constant *LHS, Constant *RHS) const { in CreateFDiv() 79 Constant *CreateURem(Constant *LHS, Constant *RHS) const { in CreateURem() 88 Constant *CreateShl(Constant *LHS, Constant *RHS, 101 Constant *CreateOr(Constant *LHS, Constant *RHS) const { in CreateOr() [all …]
|
| H A D | ConstantFolding.h | 27 class Constant; variable 54 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL, 71 Constant * 85 Constant *ConstantFoldSelectInstruction(Constant *Cond, Constant *V1, 96 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val, 102 Constant *ConstantFoldExtractValueInstruction(Constant *Agg, 108 Constant *ConstantFoldInsertElementInstruction(Constant *Val, 115 Constant *ConstantFoldExtractElementInstruction(Constant *Val, Constant *Idx); 120 Constant *ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2, 137 Constant *ConstantFoldLoadThroughGEPIndices(Constant *C, [all …]
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | ConstantFold.h | 27 class Constant; variable 36 Constant *ConstantFoldSelectInstruction(Constant *Cond, 37 Constant *V1, Constant *V2); 38 Constant *ConstantFoldExtractElementInstruction(Constant *Val, Constant *Idx); 39 Constant *ConstantFoldInsertElementInstruction(Constant *Val, Constant *Elt, 41 Constant *ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2, 43 Constant *ConstantFoldExtractValueInstruction(Constant *Agg, 45 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val, 47 Constant *ConstantFoldBinaryInstruction(unsigned Opcode, Constant *V1, 50 Constant *C1, Constant *C2); [all …]
|
| H A D | Constants.cpp | 351 Constant *Constant::getAggregateElement(Constant *Elt) const { in getAggregateElement() 1978 Constant *ConstantExpr::getSelect(Constant *C, Constant *V1, Constant *V2, in getSelect() 2238 Constant *ConstantExpr::getAdd(Constant *C1, Constant *C2, in getAdd() 2245 Constant *ConstantExpr::getFAdd(Constant *C1, Constant *C2) { in getFAdd() 2249 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub() 2256 Constant *ConstantExpr::getFSub(Constant *C1, Constant *C2) { in getFSub() 2260 Constant *ConstantExpr::getMul(Constant *C1, Constant *C2, in getMul() 2297 Constant *ConstantExpr::getAnd(Constant *C1, Constant *C2) { in getAnd() 2301 Constant *ConstantExpr::getOr(Constant *C1, Constant *C2) { in getOr() 2305 Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { in getXor() [all …]
|
| H A D | ConstantFold.cpp | 45 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { in BitCastConstantVector() 62 Constant *C = in BitCastConstantVector() 101 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast() 731 Constant *llvm::ConstantFoldSelectInstruction(Constant *Cond, in ConstantFoldSelectInstruction() 742 Constant *V; in ConstantFoldSelectInstruction() 747 Constant *Cond = dyn_cast<Constant>(CondV->getOperand(i)); in ConstantFoldSelectInstruction() 835 Constant *llvm::ConstantFoldShuffleVectorInstruction(Constant *V1, in ConstantFoldShuffleVectorInstruction() 888 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() 1315 static int IdxCompare(Constant *C1, Constant *C2, Type *ElTy) { in IdxCompare() 2080 Constant *Idx0 = cast<Constant>(Idxs[0]); in ConstantFoldGetElementPtr() [all …]
|
| H A D | ConstantsContext.h | 48 UnaryConstantExpr(unsigned Opcode, Constant *C, Type *Ty) in UnaryConstantExpr() 65 BinaryConstantExpr(unsigned Opcode, Constant *C1, Constant *C2, in BinaryConstantExpr() 86 SelectConstantExpr(Constant *C1, Constant *C2, Constant *C3) in SelectConstantExpr() 107 ExtractElementConstantExpr(Constant *C1, Constant *C2) in ExtractElementConstantExpr() 128 InsertElementConstantExpr(Constant *C1, Constant *C2, Constant *C3) in InsertElementConstantExpr() 150 ShuffleVectorConstantExpr(Constant *C1, Constant *C2, Constant *C3) in ShuffleVectorConstantExpr() 206 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() 273 unsigned short pred, Constant* LHS, Constant* RHS) in CompareConstantExpr() 374 ArrayRef<Constant *> Operands; 467 ArrayRef<Constant *> Ops; [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | ConstantEmitter.h | 73 llvm::Constant *tryEmitForInitializer(const VarDecl &D); 103 llvm::Constant *emitAbstract(const Expr *E, QualType T); 108 llvm::Constant *tryEmitAbstract(const Expr *E, QualType T); 114 llvm::Constant *emitNullForMemory(QualType T) { in emitNullForMemory() 117 llvm::Constant *emitForMemory(llvm::Constant *C, QualType T) { in emitForMemory() 122 static llvm::Constant *emitForMemory(CodeGenModule &CGM, llvm::Constant *C, 129 llvm::Constant *tryEmitPrivateForVarInit(const VarDecl &D); 131 llvm::Constant *tryEmitPrivate(const Expr *E, QualType T); 151 void registerCurrentAddrPrivate(llvm::Constant *signal, 160 llvm::Constant *markIfFailed(llvm::Constant *init) { in markIfFailed() [all …]
|
| H A D | CodeGenModule.h | 42 class Constant; variable 123 llvm::Constant *objc_alloc; 167 llvm::Constant *objc_retain; 186 llvm::Constant *objc_release; 247 llvm::Constant *CopyHelper; 606 llvm::Constant * 869 llvm::Constant * 957 llvm::Constant * 1002 void AddCXXDtorEntry(llvm::Constant *DtorFn, llvm::Constant *Object) { in AddCXXDtorEntry() 1007 llvm::Constant * [all …]
|
| H A D | CGExprConstant.cpp | 1191 llvm::Constant * 1198 llvm::Constant * 1205 llvm::Constant * 1212 llvm::Constant * 1225 llvm::Constant * 1487 llvm::Constant * 1494 llvm::Constant * 1634 llvm::Constant *applyOffset(llvm::Constant *C) { in applyOffset() 1701 llvm::Constant * 2020 llvm::Constant * [all …]
|
| H A D | CGObjCGNU.cpp | 63 llvm::Constant *Function; 444 virtual llvm::Constant *GenerateIvarList(ArrayRef<llvm::Constant *> IvarNames, 1132 llvm::Constant * 1238 llvm::Constant *GenerateIvarList(ArrayRef<llvm::Constant *> IvarNames, in GenerateIvarList() 1284 llvm::Constant *GenerateProtocolList(ArrayRef<llvm::Constant*> Protocols) { in GenerateProtocolList() 1375 llvm::Constant *EnforceType(llvm::Constant *Val, llvm::Type *Ty) { in EnforceType() 1439 std::pair<llvm::Constant*,llvm::Constant*> 2344 llvm::Constant *TI = in GetEHType() 2904 llvm::Constant * 2940 llvm::Constant * [all …]
|
| H A D | CGObjCRuntime.h | 26 class Constant; variable 101 llvm::Constant *beginCatchFn, 102 llvm::Constant *endCatchFn, 103 llvm::Constant *exceptionRethrowFn); 143 virtual llvm::Constant *GetEHType(QualType T) = 0; 211 virtual llvm::Constant *GetPropertyGetFunction() = 0; 214 virtual llvm::Constant *GetPropertySetFunction() = 0; 221 virtual llvm::Constant *GetGetStructFunction() = 0; 223 virtual llvm::Constant *GetSetStructFunction() = 0; 226 virtual llvm::Constant *GetCppAtomicObjectSetFunction() = 0; [all …]
|
| H A D | ConstantInitBuilder.cpp | 24 if (Data.is<llvm::Constant*>()) { in getType() 25 return Data.get<llvm::Constant*>()->getType(); in getType() 41 if (Data.is<llvm::Constant*>()) { in installInGlobal() 42 GV->setInitializer(Data.get<llvm::Constant*>()); in installInGlobal() 68 ConstantInitBuilderBase::createGlobal(llvm::Constant *initializer, in createGlobal() 98 llvm::Constant *resolvedReference = in resolveSelfReferences() 129 llvm::Constant * 148 llvm::Constant * 228 llvm::Constant *element = Builder.Buffer[cacheEnd]; in getOffsetFromGlobalTo() 260 llvm::Constant * [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/Utils/ |
| H A D | Evaluator.h | 58 bool EvaluateFunction(Function *F, Constant *&RetVal, 66 Constant *getVal(Value *V) { in getVal() 67 if (Constant *CV = dyn_cast<Constant>(V)) return CV; in getVal() 68 Constant *R = ValueStack.back().lookup(V); in getVal() 73 void setVal(Value *V, Constant *C) { in setVal() 87 Constant *castCallResultIfNeeded(Value *CallExpr, Constant *RV); 89 const DenseMap<Constant*, Constant*> &getMutatedMemory() const { in getMutatedMemory() 98 Constant *ComputeLoadResult(Constant *P); 103 std::deque<DenseMap<Value*, Constant*>> ValueStack; 112 DenseMap<Constant*, Constant*> MutatedMemory; [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | LoopUnrollAnalyzer.cpp | 71 if (!isa<Constant>(LHS)) in visitBinaryOperator() 74 if (!isa<Constant>(RHS)) in visitBinaryOperator() 86 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV)) in visitBinaryOperator() 136 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad() 146 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitCastInst() 156 if (Constant *C = in visitCastInst() 171 if (!isa<Constant>(LHS)) in visitCmpInst() 174 if (!isa<Constant>(RHS)) in visitCmpInst() 178 if (!isa<Constant>(LHS) && !isa<Constant>(RHS)) { in visitCmpInst() 193 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() [all …]
|
| H A D | ConstantFolding.cpp | 202 Constant *Zero = Constant::getNullValue(DstEltTy); in FoldBitCast() 697 Constant *SymbolicallyEvaluateBinop(unsigned Opc, Constant *Op0, Constant *Op1, in SymbolicallyEvaluateBinop() 784 Constant* StripPtrCastKeepAS(Constant* Ptr, Type *&ElemTy) { in StripPtrCastKeepAS() 1052 Constant * 1101 SmallDenseMap<Constant *, Constant *> FoldedOps; in ConstantFoldInstruction() 1132 SmallDenseMap<Constant *, Constant *> FoldedOps; in ConstantFoldInstruction() 1168 SmallDenseMap<Constant *, Constant *> FoldedOps; in ConstantFoldConstant() 1201 Constant *Null = Constant::getNullValue(C->getType()); in ConstantFoldCompareInstOperands() 1211 Constant *Null = Constant::getNullValue(C->getType()); in ConstantFoldCompareInstOperands() 1353 Constant * [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/ObjCARC/ |
| H A D | ARCRuntimeEntryPoints.h | 37 class Constant; variable 109 Constant *AutoreleaseRV = nullptr; 112 Constant *Release = nullptr; 115 Constant *Retain = nullptr; 118 Constant *RetainBlock = nullptr; 121 Constant *Autorelease = nullptr; 124 Constant *StoreStrong = nullptr; 127 Constant *RetainRV = nullptr; 130 Constant *RetainAutorelease = nullptr; 133 Constant *RetainAutoreleaseRV = nullptr; [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | Evaluator.cpp | 49 isSimpleEnoughValueToCommit(Constant *C, 117 isSimpleEnoughValueToCommit(Constant *C, in isSimpleEnoughValueToCommit() 178 static Constant *getInitializer(Constant *C) { in getInitializer() 185 Constant *Evaluator::ComputeLoadResult(Constant *P) { in ComputeLoadResult() 188 DenseMap<Constant*, Constant*>::const_iterator I = MutatedMemory.find(P); in ComputeLoadResult() 274 Constant *Evaluator::castCallResultIfNeeded(Value *CallExpr, Constant *RV) { in castCallResultIfNeeded() 295 Constant *InstResult = nullptr; in EvaluateBlock() 341 Constant *NewVal; in EvaluateBlock() 409 SmallVector<Constant*, 8> GEPOps; in EvaluateBlock() 535 SmallVector<Constant *, 8> Formals; in EvaluateBlock() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DebugLocEntry.h | 36 Constant.Int = i; in Value() 40 Constant.CFP = CFP; in Value() 44 Constant.CIP = CIP; in Value() 63 } Constant; member 72 int64_t getInt() const { return Constant.Int; } in getInt() 73 const ConstantFP *getConstantFP() const { return Constant.CFP; } in getConstantFP() 89 Constant.CIP->dump(); in dump() 91 Constant.CFP->dump(); in dump() 169 return A.Constant.Int == B.Constant.Int; 171 return A.Constant.CFP == B.Constant.CFP; [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Bitcode/Reader/ |
| H A D | ValueList.cpp | 86 if (Constant *PHC = dyn_cast<Constant>(&*OldV)) { in assignValue() 97 Constant *BitcodeReaderValueList::getConstantFwdRef(unsigned Idx, Type *Ty) { in getConstantFwdRef() 104 return cast<Constant>(V); in getConstantFwdRef() 108 Constant *C = new ConstantPlaceHolder(Ty, Context); in getConstantFwdRef() 149 SmallVector<Constant *, 64> NewOps; in resolveConstantForwardRefs() 153 Constant *Placeholder = ResolveConstants.back().first; in resolveConstantForwardRefs() 165 if (!isa<Constant>(U) || isa<GlobalValue>(U)) { in resolveConstantForwardRefs() 172 Constant *UserC = cast<Constant>(U); in resolveConstantForwardRefs() 186 std::pair<Constant *, unsigned>(cast<Constant>(*I), 0)); in resolveConstantForwardRefs() 191 NewOps.push_back(cast<Constant>(NewOp)); in resolveConstantForwardRefs() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/CodeGen/ |
| H A D | ConstantInitBuilder.h | 55 llvm::SmallVector<llvm::Constant*, 4> Indices; 60 llvm::SmallVector<llvm::Constant*, 16> Buffer; 89 llvm::Constant *initializer); 109 llvm::SmallVectorImpl<llvm::Constant*> &getBuffer() { in getBuffer() 187 void add(llvm::Constant *value) { in add() 214 void addAll(llvm::ArrayRef<llvm::Constant *> values) { in addAll() 235 llvm::Constant *address, in addTaggedRelativeOffset() 293 llvm::Constant *&slot = Builder.Buffer[position.Index]; in fillPlaceholder() 313 llvm::Constant *finishArray(llvm::Type *eltTy); 424 llvm::Constant *finishImpl() { in finishImpl() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/X86/ |
| H A D | X86ShuffleDecodeConstantPool.h | 25 class Constant; variable 29 void DecodePSHUFBMask(const Constant *C, unsigned Width, 33 void DecodeVPERMILPMask(const Constant *C, unsigned ElSize, unsigned Width, 37 void DecodeVPERMIL2PMask(const Constant *C, unsigned MatchImm, unsigned ElSize, 42 void DecodeVPPERMMask(const Constant *C, unsigned Width, 46 void DecodeVPERMVMask(const Constant *C, unsigned ElSize, unsigned Width, 50 void DecodeVPERMV3Mask(const Constant *C, unsigned ElSize, unsigned Width,
|