Home
last modified time | relevance | path

Searched refs:CV (Results 1 – 25 of 94) sorted by relevance

1234

/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp245 if (CV[I]) in operator []()
246 return CV[I]; in operator []()
249 if (!CV[0]) { in operator []()
256 CV[I] = Builder.CreateConstGEP1_32(nullptr, CV[0], I, in operator []()
273 return CV[J]; in operator []()
274 } else if (!CV[J]) { in operator []()
284 return CV[I]; in operator []()
352 transferMetadata(Op, CV); in gather()
364 CV[I]->takeName(Old); in gather()
369 SV = CV; in gather()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUMCInstLower.cpp213 const Constant *CV, in lowerAddrSpaceCast() argument
219 auto *CE = dyn_cast<ConstantExpr>(CV); in lowerAddrSpaceCast()
236 const MCExpr *AMDGPUAsmPrinter::lowerConstant(const Constant *CV) { in lowerConstant() argument
237 if (const MCExpr *E = lowerAddrSpaceCast(TM, CV, OutContext)) in lowerConstant()
239 return AsmPrinter::lowerConstant(CV); in lowerConstant()
397 const MCExpr *R600AsmPrinter::lowerConstant(const Constant *CV) { in lowerConstant() argument
398 if (const MCExpr *E = lowerAddrSpaceCast(TM, CV, OutContext)) in lowerConstant()
400 return AsmPrinter::lowerConstant(CV); in lowerConstant()
H A DR600AsmPrinter.h34 const MCExpr *lowerConstant(const Constant *CV) override;
H A DAMDGPUAsmPrinter.h112 const MCExpr *lowerConstant(const Constant *CV) override;
/freebsd-12.1/contrib/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp86 bool fillGenericConstant(const DataLayout &DL, const Constant *CV,
421 const Constant *CV, in fillGenericConstant() argument
423 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in fillGenericConstant()
425 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV)) in fillGenericConstant()
428 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { in fillGenericConstant()
445 if (const ConstantDataArray *CDA = dyn_cast<ConstantDataArray>(CV)) in fillGenericConstant()
448 if (const ConstantArray *CA = dyn_cast<ConstantArray>(CV)) in fillGenericConstant()
451 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV)) in fillGenericConstant()
/freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2121 if (CV->isNullValue() || isa<UndefValue>(CV)) in lowerConstant()
2133 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV); in lowerConstant()
2388 unsigned Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantVector()
2624 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in emitGlobalConstantImpl()
2629 if (!BaseCV && CV->hasOneUse()) in emitGlobalConstantImpl()
2630 BaseCV = dyn_cast<Constant>(CV->user_back()); in emitGlobalConstantImpl()
2632 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV)) in emitGlobalConstantImpl()
2655 if (isa<ConstantPointerNull>(CV)) { in emitGlobalConstantImpl()
2690 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
2703 uint64_t Size = DL.getTypeAllocSize(CV->getType()); in EmitGlobalConstant()
[all …]
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstants.cpp46 if (CV->getElementType()->isFloatingPointTy() && CV->isSplat()) in isNegativeZeroValue()
72 if (CV->getElementType()->isFloatingPointTy() && CV->isSplat()) in isZeroValue()
73 if (CV->getElementAsAPFloat(0).isZero()) in isZeroValue()
111 if (Constant *Splat = CV->getSplatValue()) in isAllOnesValue()
116 if (CV->isSplat()) { in isAllOnesValue()
137 if (Constant *Splat = CV->getSplatValue()) in isOneValue()
142 if (CV->isSplat()) { in isOneValue()
163 if (Constant *Splat = CV->getSplatValue()) in isMinSignedValue()
168 if (CV->isSplat()) { in isMinSignedValue()
1373 return CV->getSplatValue(); in getSplatValue()
[all …]
H A DConstantFold.cpp47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
48 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
54 if (NumElts != CV->getType()->getVectorNumElements()) in BitCastConstantVector()
60 Type *Ty = IntegerType::get(CV->getContext(), 32); in BitCastConstantVector()
63 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); in BitCastConstantVector()
945 const APInt *CV; in ConstantFoldBinaryInstruction() local
947 if (match(C1, m_APInt(CV)) || match(C2, m_APInt(CV))) in ConstantFoldBinaryInstruction()
948 if ((*CV)[0]) in ConstantFoldBinaryInstruction()
2039 auto *CV = cast<ConstantDataVector>(Idxs[0]); in isInBoundsIndices() local
2040 CI = dyn_cast_or_null<ConstantInt>(CV->getSplatValue()); in isInBoundsIndices()
[all …]
H A DAsmWriter.cpp1286 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { in WriteConstantInternal()
1295 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) { in WriteConstantInternal()
1374 if (isa<ConstantAggregateZero>(CV)) { in WriteConstantInternal()
1379 if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV)) { in WriteConstantInternal()
1467 if (isa<ConstantVector>(CV) || isa<ConstantDataVector>(CV)) { in WriteConstantInternal()
1468 Type *ETy = CV->getType()->getVectorElementType(); in WriteConstantInternal()
1485 if (isa<ConstantPointerNull>(CV)) { in WriteConstantInternal()
1490 if (isa<ConstantTokenNone>(CV)) { in WriteConstantInternal()
1495 if (isa<UndefValue>(CV)) { in WriteConstantInternal()
2209 const Constant *CV = dyn_cast<Constant>(V); in WriteAsOperandInternal() local
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h67 if (Constant *CV = dyn_cast<Constant>(V)) return CV; in getVal() local
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp136 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad() local
137 assert(CV && "Constant expected."); in visitLoad()
138 SimplifiedValues[&I] = CV; in visitLoad()
H A DBranchProbabilityInfo.cpp665 ConstantInt *CV = dyn_cast<ConstantInt>(RHS); in calcZeroHeuristics() local
666 if (!CV) in calcZeroHeuristics()
707 } else if (CV->isZero()) { in calcZeroHeuristics()
728 } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) { in calcZeroHeuristics()
732 } else if (CV->isMinusOne()) { in calcZeroHeuristics()
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DAsmPrinter.h352 virtual const MCExpr *lowerConstant(const Constant *CV);
355 void EmitGlobalConstant(const DataLayout &DL, const Constant *CV);
421 virtual void EmitXXStructor(const DataLayout &DL, const Constant *CV) { in EmitXXStructor() argument
422 EmitGlobalConstant(DL, CV); in EmitXXStructor()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp922 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue() local
928 } else if (CV || CAZ) { in getConstantValue()
946 if(CV) { in getConstantValue()
948 if (!isa<UndefValue>(CV->getOperand(i))) in getConstantValue()
950 CV->getOperand(i))->getValueAPF().convertToFloat(); in getConstantValue()
968 if(CV) { in getConstantValue()
970 if (!isa<UndefValue>(CV->getOperand(i))) in getConstantValue()
972 CV->getOperand(i))->getValueAPF().convertToDouble(); in getConstantValue()
990 if(CV) { in getConstantValue()
992 if (!isa<UndefValue>(CV->getOperand(i))) in getConstantValue()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAsmPrinter.cpp270 const MCExpr *WebAssemblyAsmPrinter::lowerConstant(const Constant *CV) { in lowerConstant() argument
271 if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) in lowerConstant()
276 return AsmPrinter::lowerConstant(CV); in lowerConstant()
H A DWebAssemblyAsmPrinter.h66 const MCExpr *lowerConstant(const Constant *CV) override;
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MCTargetDesc.cpp61 unsigned CV = MRI->getEncodingValue(Reg); in initLLVMToCVRegMapping() local
62 MRI->mapLLVMRegToCVReg(Reg, CV); in initLLVMToCVRegMapping()
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.h242 const MCExpr *lowerConstantForGV(const Constant *CV, bool ProcessingGeneric);
270 void bufferAggregateConstant(const Constant *CV, AggBuffer *aggBuffer);
/freebsd-12.1/contrib/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp322 const ColorVector &CV = BlockColors.find(InsertBefore->getParent())->second; in createCallInst() local
323 assert(CV.size() == 1 && "non-unique color for block!"); in createCallInst()
324 Instruction *EHPad = CV.front()->getFirstNonPHI(); in createCallInst()
/freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp1654 } else if (auto CV = dyn_cast<ConstantDataVector>(&C)) { in translate() local
1656 if (CV->getNumElements() == 1) in translate()
1657 return translate(*CV->getElementAsConstant(0), Reg); in translate()
1659 for (unsigned i = 0; i < CV->getNumElements(); ++i) { in translate()
1660 Constant &Elt = *CV->getElementAsConstant(i); in translate()
1673 } else if (auto CV = dyn_cast<ConstantVector>(&C)) { in translate() local
1674 if (CV->getNumOperands() == 1) in translate()
1675 return translate(*CV->getOperand(0), Reg); in translate()
1677 for (unsigned i = 0; i < CV->getNumOperands(); ++i) { in translate()
1678 Ops.push_back(getOrCreateVReg(*CV->getOperand(i))); in translate()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp496 til::SExpr *CV = nullptr; in translateBinAssign() local
499 CV = lookupVarDecl(VD); in translateBinAssign()
503 til::SExpr *Arg = CV ? CV : new (Arena) til::Load(E0); in translateBinAssign()
507 if (VD && CV) in translateBinAssign()
/freebsd-12.1/contrib/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp1219 Value *CV = Chain[I]; in vectorizeLoadChain() local
1221 Builder.CreateExtractElement(LI, Builder.getInt32(I), CV->getName()); in vectorizeLoadChain()
1222 if (V->getType() != CV->getType()) { in vectorizeLoadChain()
1223 V = Builder.CreateBitOrPointerCast(V, CV->getType()); in vectorizeLoadChain()
1227 CV->replaceAllUsesWith(V); in vectorizeLoadChain()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMAsmPrinter.h102 void EmitXXStructor(const DataLayout &DL, const Constant *CV) override;
/freebsd-12.1/contrib/llvm/tools/clang/utils/TableGen/
H A DClangOptionDocEmitter.cpp222 else if (auto *CV = dyn_cast_or_null<CodeInit>(V->getValue())) in getRSTStringWithTextFallback() local
223 Value = CV->getValue(); in getRSTStringWithTextFallback()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1287 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(0))) { in SimplifyDemandedVectorElts() local
1289 Value = CV->getOperand(LHSValIdx); in SimplifyDemandedVectorElts()
1294 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(1))) { in SimplifyDemandedVectorElts() local
1296 Value = CV->getOperand(RHSValIdx); in SimplifyDemandedVectorElts()
1339 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts() local
1343 Constant *CElt = CV->getAggregateElement(i); in SimplifyDemandedVectorElts()

1234