Home
last modified time | relevance | path

Searched refs:Src (Results 1 – 25 of 404) sorted by relevance

12345678910>>...17

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMIRFormatter.cpp38 StringRef Src, int64_t &Imm, in parseImmMnemonic() argument
44 return parseSDelayAluImmMnemonic(OpIdx, Imm, Src, ErrorCallback); in parseImmMnemonic()
95 const unsigned int OpIdx, int64_t &Imm, llvm::StringRef &Src, in parseSDelayAluImmMnemonic() argument
101 bool Expected = Src.consume_front(".id0_"); in parseSDelayAluImmMnemonic()
103 return ErrorCallback(Src.begin(), "Expected .id0_"); in parseSDelayAluImmMnemonic()
105 auto ExpectInt = [&](StringRef &Src, int64_t Offset) -> int64_t { in parseSDelayAluImmMnemonic() argument
107 if (!Src.consumeInteger(10, Dep)) in parseSDelayAluImmMnemonic()
113 auto DecodeDelay = [&](StringRef &Src) -> int64_t { in parseSDelayAluImmMnemonic() argument
114 if (Src.consume_front("NONE")) in parseSDelayAluImmMnemonic()
116 if (Src.consume_front("VALU_DEP_")) in parseSDelayAluImmMnemonic()
[all …]
H A DAMDGPUISelDAGToDAG.h201 bool SelectVOP3ModsImpl(SDValue In, SDValue &Src, unsigned &SrcMods,
204 bool SelectVOP3Mods(SDValue In, SDValue &Src, SDValue &SrcMods) const;
205 bool SelectVOP3ModsNonCanonicalizing(SDValue In, SDValue &Src,
207 bool SelectVOP3BMods(SDValue In, SDValue &Src, SDValue &SrcMods) const;
208 bool SelectVOP3NoMods(SDValue In, SDValue &Src) const;
209 bool SelectVOP3Mods0(SDValue In, SDValue &Src, SDValue &SrcMods,
211 bool SelectVOP3BMods0(SDValue In, SDValue &Src, SDValue &SrcMods,
213 bool SelectVOP3NoMods0(SDValue In, SDValue &Src, SDValue &SrcMods,
216 bool SelectVINTERPModsImpl(SDValue In, SDValue &Src, SDValue &SrcMods,
218 bool SelectVINTERPMods(SDValue In, SDValue &Src, SDValue &SrcMods) const;
[all …]
H A DR600InstrInfo.cpp324 for (const auto &Src : getSrcs(MI)) { in ExtractSrcs() local
326 Register Reg = Src.first->getReg(); in ExtractSrcs()
350 Swizzle(std::vector<std::pair<int, unsigned>> Src, in Swizzle() argument
352 if (Src[0] == Src[1]) in Swizzle()
353 Src[1].first = -1; in Swizzle()
358 std::swap(Src[1], Src[2]); in Swizzle()
361 std::swap(Src[0], Src[1]); in Swizzle()
364 std::swap(Src[0], Src[1]); in Swizzle()
365 std::swap(Src[0], Src[2]); in Swizzle()
368 std::swap(Src[0], Src[2]); in Swizzle()
[all …]
H A DAMDGPUISelDAGToDAG.cpp91 SDValue Src = In.getOperand(0); in stripExtractLoElt() local
92 if (Src.getValueType().getSizeInBits() == 32) in stripExtractLoElt()
93 return stripBitcast(Src); in stripExtractLoElt()
2360 SDValue Src = N->getOperand(0); in SelectS_BFE() local
2361 if (Src.getOpcode() != ISD::SRL) in SelectS_BFE()
2364 const ConstantSDNode *Amt = dyn_cast<ConstantSDNode>(Src.getOperand(1)); in SelectS_BFE()
2369 ReplaceNode(N, getBFE32(true, SDLoc(N), Src.getOperand(0), in SelectS_BFE()
2520 SDValue Src = N->getOperand(0); in SelectFP_EXTEND() local
2521 if (Src.getValueType() == MVT::f16) { in SelectFP_EXTEND()
2522 if (isExtractHiElt(Src, Src)) { in SelectFP_EXTEND()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObject.h161 void copySymbol(Symbol1Ty &Dest, const Symbol2Ty &Src) { in copySymbol() argument
162 static_assert(sizeof(Dest.Name.ShortName) == sizeof(Src.Name.ShortName), in copySymbol()
164 memcpy(Dest.Name.ShortName, Src.Name.ShortName, sizeof(Dest.Name.ShortName)); in copySymbol()
165 Dest.Value = Src.Value; in copySymbol()
166 Dest.SectionNumber = Src.SectionNumber; in copySymbol()
167 Dest.Type = Src.Type; in copySymbol()
168 Dest.StorageClass = Src.StorageClass; in copySymbol()
169 Dest.NumberOfAuxSymbols = Src.NumberOfAuxSymbols; in copySymbol()
175 void copyPeHeader(PeHeader1Ty &Dest, const PeHeader2Ty &Src) { in copyPeHeader() argument
176 Dest.Magic = Src.Magic; in copyPeHeader()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDependenceGraphBuilder.cpp162 auto createEdgeOfKind = [this](NodeType &Src, NodeType &Dst, in createPiBlocks()
166 createDefUseEdge(Src, Dst); in createPiBlocks()
169 createMemoryEdge(Src, Dst); in createPiBlocks()
172 createRootedEdge(Src, Dst); in createPiBlocks()
179 auto reconnectEdges = [&](NodeType *Src, NodeType *Dst, NodeType *New, in createPiBlocks()
181 if (!Src->hasEdgeTo(*Dst)) in createPiBlocks()
186 << ":\nSrc:" << *Src << "\nDst:" << *Dst << "\nNew:" << *New in createPiBlocks()
192 Src->findEdgesTo(*Dst, EL); in createPiBlocks()
197 createEdgeOfKind(*Src, *New, Kind); in createPiBlocks()
205 Src->removeEdge(*OldEdge); in createPiBlocks()
[all …]
H A DDependenceAnalysis.cpp231 return Src->mayReadFromMemory() && Dst->mayReadFromMemory(); in isInput()
237 return Src->mayWriteToMemory() && Dst->mayWriteToMemory(); in isOutput()
243 return Src->mayWriteToMemory() && Dst->mayReadFromMemory(); in isFlow()
249 return Src->mayReadFromMemory() && Dst->mayWriteToMemory(); in isAnti()
309 std::swap(Src, Dst); in normalize()
809 void DependenceInfo::establishNestingLevels(const Instruction *Src, in establishNestingLevels() argument
811 const BasicBlock *SrcBlock = Src->getParent(); in establishNestingLevels()
895 const SCEV *Src = Pair->Src; in unifySubscriptType() local
897 IntegerType *SrcTy = dyn_cast<IntegerType>(Src->getType()); in unifySubscriptType()
920 const SCEV *Src = Pair->Src; in unifySubscriptType() local
[all …]
H A DBranchProbabilityInfo.cpp1084 isEdgeHot(const BasicBlock *Src, const BasicBlock *Dst) const { in isEdgeHot() argument
1087 return getEdgeProbability(Src, Dst) > BranchProbability(4, 5); in isEdgeHot()
1095 BranchProbabilityInfo::getEdgeProbability(const BasicBlock *Src, in getEdgeProbability() argument
1097 auto I = Probs.find(std::make_pair(Src, IndexInSuccessors)); in getEdgeProbability()
1098 assert((Probs.end() == Probs.find(std::make_pair(Src, 0))) == in getEdgeProbability()
1106 return {1, static_cast<uint32_t>(succ_size(Src))}; in getEdgeProbability()
1110 BranchProbabilityInfo::getEdgeProbability(const BasicBlock *Src, in getEdgeProbability() argument
1112 return getEdgeProbability(Src, Dst.getSuccessorIndex()); in getEdgeProbability()
1118 BranchProbabilityInfo::getEdgeProbability(const BasicBlock *Src, in getEdgeProbability() argument
1120 if (!Probs.count(std::make_pair(Src, 0))) in getEdgeProbability()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DConvertUTFWrapper.cpp95 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin()); in convertUTF16ToUTF8String() local
98 assert((uintptr_t)Src % sizeof(UTF16) == 0); in convertUTF16ToUTF8String()
102 if (Src[0] == UNI_UTF16_BYTE_ORDER_MARK_SWAPPED) { in convertUTF16ToUTF8String()
103 ByteSwapped.insert(ByteSwapped.end(), Src, SrcEnd); in convertUTF16ToUTF8String()
106 Src = &ByteSwapped[0]; in convertUTF16ToUTF8String()
111 if (Src[0] == UNI_UTF16_BYTE_ORDER_MARK_NATIVE) in convertUTF16ToUTF8String()
112 Src++; in convertUTF16ToUTF8String()
121 ConvertUTF16toUTF8(&Src, SrcEnd, &Dst, DstEnd, strictConversion); in convertUTF16ToUTF8String()
135 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out) { in convertUTF16ToUTF8String() argument
137 llvm::ArrayRef<char>(reinterpret_cast<const char *>(Src.data()), in convertUTF16ToUTF8String()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSampleProfileInference.cpp113 for (uint64_t Src = 0; Src < Nodes.size(); Src++) { in run() local
114 for (auto &Edge : Edges[Src]) { in run()
117 if (Src == Source) in run()
133 void addEdge(uint64_t Src, uint64_t Dst, int64_t Capacity, int64_t Cost) { in addEdge() argument
135 assert(Src != Dst && "loop edge are not supported"); in addEdge()
145 DstEdge.Dst = Src; in addEdge()
149 DstEdge.RevEdgeIndex = Edges[Src].size(); in addEdge()
151 Edges[Src].push_back(SrcEdge); in addEdge()
156 void addEdge(uint64_t Src, uint64_t Dst, int64_t Cost) { in addEdge() argument
157 addEdge(Src, Dst, INF, Cost); in addEdge()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineBranchProbabilityInfo.cpp83 const MachineBasicBlock *Src, in getEdgeProbability() argument
85 return Src->getSuccProbability(Dst); in getEdgeProbability()
89 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in getEdgeProbability() argument
92 return getEdgeProbability(Src, find(Src->successors(), Dst)); in getEdgeProbability()
96 const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const { in isEdgeHot() argument
98 return getEdgeProbability(Src, Dst) > HotProb; in isEdgeHot()
102 raw_ostream &OS, const MachineBasicBlock *Src, in printEdgeProbability() argument
105 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
106 OS << "edge " << printMBBReference(*Src) << " -> " << printMBBReference(*Dst) in printEdgeProbability()
108 << (isEdgeHot(Src, Dst) ? " [HOT edge]\n" : "\n"); in printEdgeProbability()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMSelectionDAGInfo.cpp39 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, in EmitSpecializedLibcall() argument
68 if (isNullConstant(Src)) in EmitSpecializedLibcall()
104 if (Src.getValueType().bitsGT(MVT::i32)) in EmitSpecializedLibcall()
105 Src = DAG.getNode(ISD::TRUNCATE, dl, MVT::i32, Src); in EmitSpecializedLibcall()
106 else if (Src.getValueType().bitsLT(MVT::i32)) in EmitSpecializedLibcall()
107 Src = DAG.getNode(ISD::ZERO_EXTEND, dl, MVT::i32, Src); in EmitSpecializedLibcall()
109 Entry.Node = Src; in EmitSpecializedLibcall()
114 Entry.Node = Src; in EmitSpecializedLibcall()
169 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, in EmitTargetCodeForMemcpy() argument
178 return DAG.getNode(ARMISD::MEMCPYLOOP, dl, MVT::Other, Chain, Dst, Src, in EmitTargetCodeForMemcpy()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DByteProvider.h32 ByteProvider(std::optional<ISelOp> Src, int64_t DestOffset, int64_t SrcOffset) in ByteProvider() argument
33 : Src(Src), DestOffset(DestOffset), SrcOffset(SrcOffset) {} in ByteProvider()
57 std::optional<ISelOp> Src = std::nullopt;
76 bool isConstantZero() const { return !Src; } in isConstantZero()
78 bool hasSrc() const { return Src.has_value(); } in hasSrc()
80 bool hasSameSrc(const ByteProvider &Other) const { return Other.Src == Src; } in hasSameSrc()
83 return Other.Src == Src && Other.DestOffset == DestOffset &&
H A DCostTable.h58 MVT::SimpleValueType Src; member
67 int ISD, MVT Dst, MVT Src) { in ConvertCostTableLookup() argument
70 return ISD == Entry.ISD && Src == Entry.Src && Dst == Entry.Dst; in ConvertCostTableLookup()
82 int ISD, MVT Dst, MVT Src) { in ConvertCostTableLookup() argument
84 return ConvertCostTableLookup<CostType>(Table, ISD, Dst, Src); in ConvertCostTableLookup()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZSelectionDAGInfo.cpp25 SDValue Chain, SDValue Dst, SDValue Src, in createMemMemNode() argument
33 Ops = { Chain, Dst, Src, LenAdj }; in createMemMemNode()
42 SDValue Chain, SDValue Dst, SDValue Src, in emitMemMemImm() argument
47 return createMemMemNode(DAG, DL, Op, Chain, Dst, Src, LenAdj, Byte); in emitMemMemImm()
51 SDValue Chain, SDValue Dst, SDValue Src, in emitMemMemReg() argument
57 return createMemMemNode(DAG, DL, Op, Chain, Dst, Src, LenAdj, Byte); in emitMemMemReg()
61 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, SDValue Src, in EmitTargetCodeForMemcpy() argument
68 return emitMemMemImm(DAG, DL, SystemZISD::MVC, Chain, Dst, Src, in EmitTargetCodeForMemcpy()
71 return emitMemMemReg(DAG, DL, SystemZISD::MVC, Chain, Dst, Src, Size); in EmitTargetCodeForMemcpy()
189 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Src, in EmitTargetCodeForMemchr() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp26 enum class LinkFrom { Dst, Src, Both }; enumerator
57 const GlobalValue &Src);
68 Comdat::SelectionKind Src,
152 Comdat::SelectionKind Src, in computeResultingSelectionKind() argument
161 bool SrcAnyOrLargest = Src == Comdat::SelectionKind::Any || in computeResultingSelectionKind()
162 Src == Comdat::SelectionKind::Largest; in computeResultingSelectionKind()
165 Src == Comdat::SelectionKind::Largest) in computeResultingSelectionKind()
169 } else if (Src == Dst) { in computeResultingSelectionKind()
203 From = SrcSize > DstSize ? LinkFrom::Src : LinkFrom::Dst; in computeResultingSelectionKind()
230 From = LinkFrom::Src; in getComdatResult()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h231 void validateTruncExt(const LLT Dst, const LLT Src, bool IsExtend);
702 MachineInstrBuilder buildPtrToInt(const DstOp &Dst, const SrcOp &Src) { in buildPtrToInt() argument
703 return buildInstr(TargetOpcode::G_PTRTOINT, {Dst}, {Src}); in buildPtrToInt()
707 MachineInstrBuilder buildIntToPtr(const DstOp &Dst, const SrcOp &Src) { in buildIntToPtr() argument
708 return buildInstr(TargetOpcode::G_INTTOPTR, {Dst}, {Src}); in buildIntToPtr()
712 MachineInstrBuilder buildBitcast(const DstOp &Dst, const SrcOp &Src) { in buildBitcast() argument
713 return buildInstr(TargetOpcode::G_BITCAST, {Dst}, {Src}); in buildBitcast()
717 MachineInstrBuilder buildAddrSpaceCast(const DstOp &Dst, const SrcOp &Src) { in buildAddrSpaceCast() argument
718 return buildInstr(TargetOpcode::G_ADDRSPACE_CAST, {Dst}, {Src}); in buildAddrSpaceCast()
801 MachineInstrBuilder buildCast(const DstOp &Dst, const SrcOp &Src);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDependenceAnalysis.h78 : Src(Source), Dst(Destination) {} in Dependence()
108 Instruction *getSrc() const { return Src; } in getSrc()
164 /// vector means Src and Dst are reversed in the actual program.
169 /// Src and Dst, plus reversing the dependence directions and distances
211 Instruction *Src, *Dst;
228 FullDependence(Instruction *Src, Instruction *Dst, bool LoopIndependent,
257 /// vector means Src and Dst are reversed in the actual program.
262 /// Src and Dst, plus reversing the dependence directions and distances
303 /// depends - Tests for a dependence between the Src and Dst instructions.
307 /// if it appears that control flow can reach from Src t
367 const SCEV *Src; global() member
[all...]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DBasicBlock.cpp749 BasicBlock *Src, in spliceDebugInfoEmptyBlock() argument
779 if (Src->empty()) { in spliceDebugInfoEmptyBlock()
780 DbgMarker *SrcTrailingDbgRecords = Src->getTrailingDbgRecords(); in spliceDebugInfoEmptyBlock()
784 Dest->adoptDbgRecords(Src, Src->end(), InsertAtHead); in spliceDebugInfoEmptyBlock()
786 assert(!Src->getTrailingDbgRecords()); in spliceDebugInfoEmptyBlock()
793 if (Src->empty() || First != Src->begin() || !ReadFromHead) in spliceDebugInfoEmptyBlock()
805 void BasicBlock::spliceDebugInfo(BasicBlock::iterator Dest, BasicBlock *Src, in spliceDebugInfo() argument
848 MoreDanglingDbgRecords = Src->getMarker(First); in spliceDebugInfo()
864 DbgMarker *CurMarker = Src->createMarker(&*First); in spliceDebugInfo()
873 spliceDebugInfoImpl(Dest, Src, First, Last); in spliceDebugInfo()
[all …]
H A DGlobals.cpp62 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { in copyAttributesFrom() argument
63 setVisibility(Src->getVisibility()); in copyAttributesFrom()
64 setUnnamedAddr(Src->getUnnamedAddr()); in copyAttributesFrom()
65 setThreadLocalMode(Src->getThreadLocalMode()); in copyAttributesFrom()
66 setDLLStorageClass(Src->getDLLStorageClass()); in copyAttributesFrom()
67 setDSOLocal(Src->isDSOLocal()); in copyAttributesFrom()
68 setPartition(Src->getPartition()); in copyAttributesFrom()
69 if (Src->hasSanitizerMetadata()) in copyAttributesFrom()
70 setSanitizerMetadata(Src->getSanitizerMetadata()); in copyAttributesFrom()
147 void GlobalObject::copyAttributesFrom(const GlobalObject *Src) { in copyAttributesFrom() argument
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerManager.h249 const ExplodedNodeSet &Src, in runCheckersForPreStmt() argument
252 runCheckersForStmt(/*isPreVisit=*/true, Dst, Src, S, Eng); in runCheckersForPreStmt()
262 const ExplodedNodeSet &Src,
266 runCheckersForStmt(/*isPreVisit=*/false, Dst, Src, S, Eng, wasInlined);
271 ExplodedNodeSet &Dst, const ExplodedNodeSet &Src,
277 const ExplodedNodeSet &Src, in runCheckersForPreObjCMessage() argument
280 runCheckersForObjCMessage(ObjCMessageVisitKind::Pre, Dst, Src, msg, Eng); in runCheckersForPreObjCMessage()
285 const ExplodedNodeSet &Src,
289 runCheckersForObjCMessage(ObjCMessageVisitKind::Post, Dst, Src, msg, Eng,
295 const ExplodedNodeSet &Src, in runCheckersForObjCMessageNil() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/MIRParser/
H A DMIParser.h207 StringRef Src, SMDiagnostic &Error);
219 bool parseMachineInstructions(PerFunctionMIParsingState &PFS, StringRef Src,
223 MachineBasicBlock *&MBB, StringRef Src,
227 Register &Reg, StringRef Src,
231 StringRef Src, SMDiagnostic &Error);
234 VRegInfo *&Info, StringRef Src,
238 StringRef Src, SMDiagnostic &Error);
240 bool parseMDNode(PerFunctionMIParsingState &PFS, MDNode *&Node, StringRef Src,
243 bool parseMachineMetadata(PerFunctionMIParsingState &PFS, StringRef Src,
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostSelectOptimize.cpp127 Register Src = MI.getOperand(1).getReg(); in foldSimpleCrossClassCopies() local
130 if (Src.isPhysical() || Dst.isPhysical()) in foldSimpleCrossClassCopies()
133 const TargetRegisterClass *SrcRC = MRI.getRegClass(Src); in foldSimpleCrossClassCopies()
145 if (!MRI.hasOneNonDBGUse(Src)) in foldSimpleCrossClassCopies()
150 if (!MRI.constrainRegClass(Src, DstRC, /* MinNumRegs */ 25)) in foldSimpleCrossClassCopies()
160 MRI.replaceRegWith(Dst, Src); in foldSimpleCrossClassCopies()
176 Register Src = MI.getOperand(1).getReg(); in foldCopyDup() local
178 if (!Dst.isVirtual() || !Src.isVirtual()) in foldCopyDup()
185 MRI.getRegClassOrNull(Src) != FPRRegClass) in foldCopyDup()
206 MachineInstr *SrcMI = MRI.getUniqueVRegDef(Src); in foldCopyDup()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64SelectionDAGInfo.cpp86 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, SDValue Src, in EmitStreamingCompatibleMemLibCall() argument
104 Entry.Node = Src; in EmitStreamingCompatibleMemLibCall()
112 Entry.Node = Src; in EmitStreamingCompatibleMemLibCall()
120 Src = DAG.getZExtOrTrunc(Src, DL, MVT::i32); in EmitStreamingCompatibleMemLibCall()
121 Entry.Node = Src; in EmitStreamingCompatibleMemLibCall()
144 SelectionDAG &DAG, const SDLoc &DL, SDValue Chain, SDValue Dst, SDValue Src, in EmitTargetCodeForMemcpy() argument
151 return EmitMOPS(AArch64ISD::MOPS_MEMCOPY, DAG, DL, Chain, Dst, Src, Size, in EmitTargetCodeForMemcpy()
156 return EmitStreamingCompatibleMemLibCall(DAG, DL, Chain, Dst, Src, Size, in EmitTargetCodeForMemcpy()
162 SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src, in EmitTargetCodeForMemset() argument
169 return EmitMOPS(AArch64ISD::MOPS_MEMSET, DAG, dl, Chain, Dst, Src, Size, in EmitTargetCodeForMemset()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp155 Value *Src = CI.getOperand(0); in commonCastTransforms() local
158 if (auto *SrcC = dyn_cast<Constant>(Src)) in commonCastTransforms()
163 if (auto *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast in commonCastTransforms()
175 if (auto *Sel = dyn_cast<SelectInst>(Src)) { in commonCastTransforms()
199 if (auto *PN = dyn_cast<PHINode>(Src)) { in commonCastTransforms()
202 if (!Src->getType()->isIntegerTy() || !CI.getType()->isIntegerTy() || in commonCastTransforms()
214 if (match(Src, m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(Mask))))) { in commonCastTransforms()
681 Value *Src = Trunc.getOperand(0); in visitTrunc() local
682 Type *DestTy = Trunc.getType(), *SrcTy = Src->getType(); in visitTrunc()
691 canEvaluateTruncated(Src, DestTy, *this, &Trunc)) { in visitTrunc()
[all …]

12345678910>>...17