|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/BitVector.h 95 WordRef = &b.Bits[Idx / BITWORD_SIZE];
175 NumBits += countPopulation(Bits[i]);
182 if (Bits[i] != 0)
190 if (Bits[i] != ~0UL)
195 return Bits[Size / BITWORD_SIZE] == (1UL << Remainder) - 1;
217 BitWord Copy = Bits[i];
247 BitWord Copy = Bits[CurrentWord];
277 BitWord Copy = Bits[i];
309 BitWord Copy = Bits[CurrentWord];
405 Bits[Idx / BITWORD_SIZE] |= BitWord(1) << (Idx % BITWORD_SIZE);
420 Bits[I / BITWORD_SIZE] |= Mask;
425 Bits[I / BITWORD_SIZE] |= PrefixMask;
429 Bits[I / BITWORD_SIZE] = ~0UL;
433 Bits[I / BITWORD_SIZE] |= PostfixMask;
444 Bits[Idx / BITWORD_SIZE] &= ~(BitWord(1) << (Idx % BITWORD_SIZE));
459 Bits[I / BITWORD_SIZE] &= ~Mask;
464 Bits[I / BITWORD_SIZE] &= ~PrefixMask;
468 Bits[I / BITWORD_SIZE] = 0UL;
472 Bits[I / BITWORD_SIZE] &= ~PostfixMask;
479 Bits[i] = ~Bits[i];
479 Bits[i] = ~Bits[i];
485 Bits[Idx / BITWORD_SIZE] ^= BitWord(1) << (Idx % BITWORD_SIZE);
498 return (Bits[Idx / BITWORD_SIZE] & Mask) != 0;
527 if (Bits[i] & RHS.Bits[i])
527 if (Bits[i] & RHS.Bits[i])
538 if (Bits[i] != RHS.Bits[i])
538 if (Bits[i] != RHS.Bits[i])
544 if (Bits[i])
548 if (RHS.Bits[i])
564 Bits[i] &= RHS.Bits[i];
564 Bits[i] &= RHS.Bits[i];
570 Bits[i] = 0;
581 Bits[i] &= ~RHS.Bits[i];
581 Bits[i] &= ~RHS.Bits[i];
592 if ((Bits[i] & ~RHS.Bits[i]) != 0)
592 if ((Bits[i] & ~RHS.Bits[i]) != 0)
596 if (Bits[i] != 0)
606 Bits[i] |= RHS.Bits[i];
606 Bits[i] |= RHS.Bits[i];
614 Bits[i] ^= RHS.Bits[i];
614 Bits[i] ^= RHS.Bits[i];
658 Bits[I] >>= BitDistance;
659 Bits[I] |= (Bits[I + 1] & Mask) << LSH;
659 Bits[I] |= (Bits[I + 1] & Mask) << LSH;
662 Bits[NumWords - 1] >>= BitDistance;
708 Bits[I] <<= BitDistance;
709 Bits[I] |= (Bits[I - 1] & Mask) >> RSH;
709 Bits[I] |= (Bits[I - 1] & Mask) >> RSH;
711 Bits[0] <<= BitDistance;
873 Bits[UsedWords-1] |= ExtraBitMask;
875 Bits[UsedWords-1] &= ~ExtraBitMask;
905 BitWord BW = Bits[i];
913 Bits[i] = BW;
918 if (AddBits) Bits[i] |= BitWord(M) << b;
919 else Bits[i] &= ~(BitWord(M) << b);
include/llvm/CodeGen/SelectionDAGNodes.h 1558 int idx = Mask[i];
1562 Mask[i] = idx + NumElems;
1564 Mask[i] = idx - NumElems;
lib/Bitcode/Reader/MetadataLoader.cpp 556 if (N >= 3 && Expr[N - 3] == dwarf::DW_OP_bit_piece)
557 Expr[N - 3] = dwarf::DW_OP_LLVM_fragment;
561 if (N && Expr[0] == dwarf::DW_OP_deref) {
lib/CodeGen/MachineBlockPlacement.cpp 954 llvm::stable_sort(Edges[0], Cmp);
955 llvm::stable_sort(Edges[1], Cmp);
956 auto BestA = Edges[0].begin();
957 auto BestB = Edges[1].begin();
lib/CodeGen/MachineTraceMetrics.cpp 454 MachineTraceMetrics::TraceBlockInfo &TBI = LB.Blocks[To->getNumber()];
lib/CodeGen/RegisterCoalescer.cpp 3492 if (!CurrList[i])
3496 if (ErasedInstrs.count(CurrList[i])) {
3497 CurrList[i] = nullptr;
3501 bool Success = joinCopy(CurrList[i], Again);
3504 CurrList[i] = nullptr;
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 5520 if (Parts[MaskByteOffset])
5523 Parts[MaskByteOffset] = N0.getOperand(0).getNode();
5537 Parts[0] = Parts[1] = N.getOperand(0).getOperand(0).getNode();
5537 Parts[0] = Parts[1] = N.getOperand(0).getOperand(0).getNode();
lib/DebugInfo/MSF/MSFBuilder.cpp 137 Blocks[I++] = NextBlock;
lib/DebugInfo/PDB/Native/GlobalsStream.cpp 152 BucketMap[I] = CompressedBucketIdx++;
154 BucketMap[I] = -1;
lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp 132 HashBuffer[I] = TypeHashes[I] % (MaxTpiHashBuckets - 1);
lib/MC/MCParser/AsmLexer.cpp 523 Buf[ReadCount] = Token;
lib/MC/StringTableBuilder.cpp 97 int Pivot = charTailAt(Vec[0], Pos);
101 int C = charTailAt(Vec[K], Pos);
103 std::swap(Vec[I++], Vec[K++]);
103 std::swap(Vec[I++], Vec[K++]);
105 std::swap(Vec[--J], Vec[K]);
105 std::swap(Vec[--J], Vec[K]);
lib/MCA/HardwareUnits/RegisterFile.cpp 124 UsedPhysRegs[RegisterFileIndex] += Cost;
129 UsedPhysRegs[0] += Cost;
139 FreedPhysRegs[RegisterFileIndex] += Cost;
144 FreedPhysRegs[0] += Cost;
lib/MCA/Support.cpp 46 Masks[0] = 0;
53 Masks[I] = 1ULL << ProcResourceID;
62 Masks[I] = 1ULL << ProcResourceID;
64 uint64_t OtherMask = Masks[Desc.SubUnitsIdxBegin[U]];
65 Masks[I] |= OtherMask;
76 << format_hex(Masks[I],16) << " - "
lib/ProfileData/InstrProf.cpp 546 ThisSiteRecords[I].overlap(OtherSiteRecords[I], ValueKind, Overlap,
652 ThisSiteRecords[I].merge(OtherSiteRecords[I], Weight, Warn);
lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp 396 Data[Offset + i] |= uint8_t((Value >> (i * 8)) & 0xff);
404 Data[Offset + Idx] |= uint8_t((Value >> (i * 8)) & 0xff);
416 Data[Offset + 3] &= ~(1 << 6);
418 Data[Offset + 3] |= (1 << 6);
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp 5389 Tokens[Idx] = AsmToken(AsmToken::Error, "");
lib/Target/AMDGPU/MCTargetDesc/AMDGPUAsmBackend.cpp 154 Data[Offset + i] |= static_cast<uint8_t>((Value >> (i * 8)) & 0xff);
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp 1062 Data[Offset + Idx] |= uint8_t((Value >> (i * 8)) & 0xff);
lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp 384 Data[Offset + i] |= mask;
lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp 78 support::endian::write<uint32_t>(&Data[Fixup.getOffset() + 4],
82 support::endian::write<uint32_t>(&Data[Fixup.getOffset()], Value, Endian);
84 support::endian::write<uint64_t>(&Data[Fixup.getOffset()], Value, Endian);
88 Data[Fixup.getOffset() + 1] = 0x10;
89 support::endian::write32le(&Data[Fixup.getOffset() + 4], Value);
91 Data[Fixup.getOffset() + 1] = 0x1;
92 support::endian::write32be(&Data[Fixup.getOffset() + 4], Value);
97 support::endian::write<uint16_t>(&Data[Fixup.getOffset() + 2], Value,
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp 872 MaskL[I] = MaskR[I] = -1;
872 MaskL[I] = MaskR[I] = -1;
874 MaskL[I] = M;
875 MaskR[I] = -1;
877 MaskL[I] = -1;
878 MaskR[I] = M-VecLen;
1086 NewMask[I] = M;
1116 NewMask[I] = M;
1139 NewMask[I] = M;
1191 NewMask[I] = M;
lib/Target/Hexagon/HexagonISelLowering.cpp 2104 Consts[i] = ConstantInt::get(IntTy, 0);
2110 Consts[i] = ConstantInt::get(IntTy, CI->getValue().getSExtValue());
2114 Consts[i] = ConstantInt::get(IntTy, A.getZExtValue());
lib/Target/Lanai/MCTargetDesc/LanaiAsmBackend.cpp 117 CurVal |= static_cast<uint64_t>(static_cast<uint8_t>(Data[Offset + Idx]))
128 Data[Offset + Idx] = static_cast<uint8_t>((CurVal >> (i * 8)) & 0xff);
lib/Target/MSP430/MCTargetDesc/MSP430AsmBackend.cpp 154 Data[Offset + i] |= uint8_t((Value >> (i * 8)) & 0xff);
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp 287 CurVal |= (uint64_t)((uint8_t)Data[Offset + Idx]) << (i*8);
299 Data[Offset + Idx] = (uint8_t)((CurVal >> (i*8)) & 0xff);
lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp 137 Data[Offset + i] |= uint8_t((Value >> (Idx * 8)) & 0xff);
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp 306 Data[Offset + i] |= uint8_t((Value >> (i * 8)) & 0xff);
lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp 313 Data[Offset + Idx] |= uint8_t((Value >> (i * 8)) & 0xff);
lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp 115 Data[Offset + I] |= uint8_t(Value >> ShiftValue);
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyAsmBackend.cpp 123 Data[Offset + I] |= uint8_t((Value >> (I * 8)) & 0xff);
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp 125 Data[Fixup.getOffset() + i] = uint8_t(Value >> (i * 8));
lib/Target/X86/X86ISelLowering.cpp10991 int M = Mask[i];
11003 Mask[i] = i;
11009 Mask[i] = i + Size;
13420 HiMask[i] = (HiMask[i] < 0 ? HiMask[i] : (HiMask[i] - 4));
13420 HiMask[i] = (HiMask[i] < 0 ? HiMask[i] : (HiMask[i] - 4));
13420 HiMask[i] = (HiMask[i] < 0 ? HiMask[i] : (HiMask[i] - 4));
13420 HiMask[i] = (HiMask[i] < 0 ? HiMask[i] : (HiMask[i] - 4));
13462 int M0 = Mask[2 * DWord + 0];
13463 int M1 = Mask[2 * DWord + 1];
13665 SourceHalfMask[InPlaceInputs[0] - HalfOffset] =
13673 SourceHalfMask[Input - HalfOffset] = Input - HalfOffset;
13680 SourceHalfMask[InPlaceInputs[0] - HalfOffset] =
13685 SourceHalfMask[AdjIndex - HalfOffset] = InPlaceInputs[1] - HalfOffset;
13721 if (SourceHalfMask[SourceHalfMask[Input - SourceOffset]] < 0) {
13721 if (SourceHalfMask[SourceHalfMask[Input - SourceOffset]] < 0) {
13722 SourceHalfMask[SourceHalfMask[Input - SourceOffset]] =
13722 SourceHalfMask[SourceHalfMask[Input - SourceOffset]] =
13726 if (M == SourceHalfMask[Input - SourceOffset] + SourceOffset)
13729 M = SourceHalfMask[Input - SourceOffset] + SourceOffset;
13731 assert(SourceHalfMask[SourceHalfMask[Input - SourceOffset]] ==
13731 assert(SourceHalfMask[SourceHalfMask[Input - SourceOffset]] ==
13738 Input = SourceHalfMask[Input - SourceOffset] + SourceOffset;
13765 if (isWordClobbered(SourceHalfMask, IncomingInputs[0] - SourceOffset)) {
13768 SourceHalfMask[InputFixed - SourceOffset] =
13769 IncomingInputs[0] - SourceOffset;
13770 std::replace(HalfMask.begin(), HalfMask.end(), IncomingInputs[0],
13772 IncomingInputs[0] = InputFixed;
13775 if (IncomingInputs[0] / 2 != IncomingInputs[1] / 2 ||
13775 if (IncomingInputs[0] / 2 != IncomingInputs[1] / 2 ||
13776 isDWordClobbered(SourceHalfMask, IncomingInputs[0] - SourceOffset)) {
13780 int InputsFixed[2] = {IncomingInputs[0] - SourceOffset,
13781 IncomingInputs[1] - SourceOffset};
13787 SourceHalfMask[InputsFixed[0] ^ 1] < 0) {
13788 SourceHalfMask[InputsFixed[0]] = InputsFixed[0];
13789 SourceHalfMask[InputsFixed[0] ^ 1] = InputsFixed[1];
13792 SourceHalfMask[InputsFixed[1] ^ 1] < 0) {
13793 SourceHalfMask[InputsFixed[1]] = InputsFixed[1];
13794 SourceHalfMask[InputsFixed[1] ^ 1] = InputsFixed[0];
13796 } else if (SourceHalfMask[2 * ((InputsFixed[0] / 2) ^ 1)] < 0 &&
13797 SourceHalfMask[2 * ((InputsFixed[0] / 2) ^ 1) + 1] < 0) {
13801 SourceHalfMask[2 * ((InputsFixed[0] / 2) ^ 1)] = InputsFixed[0];
13802 SourceHalfMask[2 * ((InputsFixed[0] / 2) ^ 1) + 1] = InputsFixed[1];
13811 assert((SourceHalfMask[i] < 0 || SourceHalfMask[i] == i) &&
13811 assert((SourceHalfMask[i] < 0 || SourceHalfMask[i] == i) &&
13816 SourceHalfMask[InputsFixed[0] ^ 1] = InputsFixed[1];
13817 SourceHalfMask[InputsFixed[1]] = InputsFixed[0] ^ 1;
13832 if (M == IncomingInputs[0])
13834 else if (M == IncomingInputs[1])
13837 IncomingInputs[0] = InputsFixed[0] + SourceOffset;
13838 IncomingInputs[1] = InputsFixed[1] + SourceOffset;
13847 PSHUFDMask[FreeDWord] = IncomingInputs[0] / 2;
14975 assert((MergedMask[i] < 0 || MergedMask[i] == M) &&
14975 assert((MergedMask[i] < 0 || MergedMask[i] == M) &&
14977 MergedMask[i] = M;
15101 HalfMask[i] = M;
15115 HalfMask[i] = HalfElt;
15120 HalfMask[i] = HalfElt + HalfNumElts;
33327 if (Mask[0] != 0 || Mask[1] != 1 ||
33327 if (Mask[0] != 0 || Mask[1] != 1 ||
33328 !(Mask[2] >= 2 && Mask[2] < 4 && Mask[3] >= 2 && Mask[3] < 4))
33328 !(Mask[2] >= 2 && Mask[2] < 4 && Mask[3] >= 2 && Mask[3] < 4))
33328 !(Mask[2] >= 2 && Mask[2] < 4 && Mask[3] >= 2 && Mask[3] < 4))
33328 !(Mask[2] >= 2 && Mask[2] < 4 && Mask[3] >= 2 && Mask[3] < 4))
33337 if (Mask[2] != 2 || Mask[3] != 3 ||
33337 if (Mask[2] != 2 || Mask[3] != 3 ||
33338 !(Mask[0] >= 0 && Mask[0] < 2 && Mask[1] >= 0 && Mask[1] < 2))
33338 !(Mask[0] >= 0 && Mask[0] < 2 && Mask[1] >= 0 && Mask[1] < 2))
33338 !(Mask[0] >= 0 && Mask[0] < 2 && Mask[1] >= 0 && Mask[1] < 2))
33338 !(Mask[0] >= 0 && Mask[0] < 2 && Mask[1] >= 0 && Mask[1] < 2))
lib/Transforms/IPO/WholeProgramDevirt.cpp 924 Function *TheFn = TargetsForSlot[0].Fn;
931 TargetsForSlot[0].WasDevirt = true;
979 auto TheFn = TargetsForSlot[0];
1205 uint64_t TheRetVal = TargetsForSlot[0].RetVal;
1215 applyUniformRetValOpt(CSInfo, TargetsForSlot[0].Fn->getName(), TheRetVal);
1347 applyUniqueRetValOpt(CSInfo, TargetsForSlot[0].Fn->getName(), IsOne,
1394 auto RetType = dyn_cast<IntegerType>(TargetsForSlot[0].Fn->getReturnType());
1485 TargetsForSlot[0].Fn->getName(), ByteConst, BitConst);
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp 1209 struct PartiallyConstructedSafepointRecord &info = records[i];
1921 struct PartiallyConstructedSafepointRecord &info = records[i];
tools/clang/include/clang/AST/Expr.h 4822 Designator *getDesignator(unsigned Idx) { return &designators()[Idx]; }
tools/clang/include/clang/AST/VTableBuilder.h 291 return VTableIndices[i];
300 size_t thisIndex = VTableIndices[i];
303 : VTableIndices[i + 1];
tools/clang/include/clang/Sema/Overload.h 856 Conversions[Idx].Bad.FromExpr,
857 Conversions[Idx].Bad.getFromType(),
858 Conversions[Idx].Bad.getToType(), S);
tools/clang/lib/Basic/TargetInfo.cpp 666 if (OutputConstraints[i].isReadWrite())
676 Info.setTiedOperand(i, OutputConstraints[i]);
695 if (OutputConstraints[Index].isReadWrite())
698 Info.setTiedOperand(Index, OutputConstraints[Index]);
tools/clang/lib/CodeGen/CGBuiltin.cpp 9894 Rnd = cast<llvm::ConstantInt>(Ops[4])->getZExtValue();
9897 Ops[2] = CGF.Builder.CreateFNeg(Ops[2]);
9897 Ops[2] = CGF.Builder.CreateFNeg(Ops[2]);
9899 Ops[0] = CGF.Builder.CreateExtractElement(Ops[0], (uint64_t)0);
9899 Ops[0] = CGF.Builder.CreateExtractElement(Ops[0], (uint64_t)0);
9900 Ops[1] = CGF.Builder.CreateExtractElement(Ops[1], (uint64_t)0);
9900 Ops[1] = CGF.Builder.CreateExtractElement(Ops[1], (uint64_t)0);
9901 Ops[2] = CGF.Builder.CreateExtractElement(Ops[2], (uint64_t)0);
9901 Ops[2] = CGF.Builder.CreateExtractElement(Ops[2], (uint64_t)0);
9904 Intrinsic::ID IID = Ops[0]->getType()->getPrimitiveSizeInBits() == 32 ?
9908 {Ops[0], Ops[1], Ops[2], Ops[4]});
9908 {Ops[0], Ops[1], Ops[2], Ops[4]});
9908 {Ops[0], Ops[1], Ops[2], Ops[4]});
9908 {Ops[0], Ops[1], Ops[2], Ops[4]});
9910 Function *FMA = CGF.CGM.getIntrinsic(Intrinsic::fma, Ops[0]->getType());
9916 : Ops[PTIdx];
9924 Res = EmitX86ScalarSelect(CGF, Ops[3], Res, PassThru);
tools/clang/lib/Driver/Driver.cpp 4932 Digits[CurDigit] = Digit;
tools/clang/lib/Lex/Pragma.cpp 1137 Toks[0].startToken();
1138 Toks[0].setKind(tok::annot_pragma_captured);
1139 Toks[0].setLocation(NameLoc);
tools/clang/lib/Parse/ParsePragma.cpp 115 Toks[0].startToken();
116 Toks[0].setKind(tok::annot_pragma_fenv_access);
117 Toks[0].setLocation(Tok.getLocation());
118 Toks[0].setAnnotationEndLoc(Tok.getLocation());
119 Toks[0].setAnnotationValue(reinterpret_cast<void*>(
1740 Toks[0].startToken();
1741 Toks[0].setKind(tok::annot_pragma_pack);
1742 Toks[0].setLocation(PackLoc);
1743 Toks[0].setAnnotationEndLoc(RParenLoc);
1744 Toks[0].setAnnotationValue(static_cast<void*>(Info));
1783 Toks[0].startToken();
1784 Toks[0].setKind(tok::annot_pragma_msstruct);
1785 Toks[0].setLocation(MSStructTok.getLocation());
1786 Toks[0].setAnnotationEndLoc(EndLoc);
1787 Toks[0].setAnnotationValue(reinterpret_cast<void*>(
1900 Toks[0].startToken();
1901 Toks[0].setKind(tok::annot_pragma_align);
1902 Toks[0].setLocation(FirstTok.getLocation());
1903 Toks[0].setAnnotationEndLoc(EndLoc);
1904 Toks[0].setAnnotationValue(reinterpret_cast<void*>(
1993 Token &pragmaUnusedTok = Toks[2*i], &idTok = Toks[2*i+1];
1993 Token &pragmaUnusedTok = Toks[2*i], &idTok = Toks[2*i+1];
2042 Token &pragmaUnusedTok = Toks[0];
2047 Toks[1] = WeakName;
2048 Toks[2] = AliasName;
2054 Token &pragmaUnusedTok = Toks[0];
2059 Toks[1] = WeakName;
2099 Token &pragmaRedefTok = Toks[0];
2104 Toks[1] = RedefName;
2105 Toks[2] = AliasName;
2119 Toks[0].startToken();
2120 Toks[0].setKind(tok::annot_pragma_fp_contract);
2121 Toks[0].setLocation(Tok.getLocation());
2122 Toks[0].setAnnotationEndLoc(Tok.getLocation());
2123 Toks[0].setAnnotationValue(reinterpret_cast<void*>(
2182 Toks[0].startToken();
2183 Toks[0].setKind(tok::annot_pragma_opencl_extension);
2184 Toks[0].setLocation(NameLoc);
2185 Toks[0].setAnnotationValue(static_cast<void*>(Info));
2186 Toks[0].setAnnotationEndLoc(StateLoc);
tools/clang/lib/Sema/SemaChecking.cpp 4679 Diag(Args[AdjustedNumArgs]->getBeginLoc(),
4687 Expr *Ptr = Args[0];
4809 APIOrderedArgs.push_back(Args[0]);
4813 APIOrderedArgs.push_back(Args[1]); // Val1/Order
4819 APIOrderedArgs.push_back(Args[2]); // Val1
4820 APIOrderedArgs.push_back(Args[1]); // Order
4823 APIOrderedArgs.push_back(Args[2]); // Val1
4824 APIOrderedArgs.push_back(Args[3]); // Val2
4825 APIOrderedArgs.push_back(Args[1]); // Order
4828 APIOrderedArgs.push_back(Args[2]); // Val1
4829 APIOrderedArgs.push_back(Args[4]); // Val2
4830 APIOrderedArgs.push_back(Args[1]); // Order
4831 APIOrderedArgs.push_back(Args[3]); // OrderFail
4834 APIOrderedArgs.push_back(Args[2]); // Val1
4835 APIOrderedArgs.push_back(Args[4]); // Val2
4836 APIOrderedArgs.push_back(Args[5]); // Weak
4837 APIOrderedArgs.push_back(Args[1]); // Order
4838 APIOrderedArgs.push_back(Args[3]); // OrderFail
4965 auto *Scope = Args[Args.size() - 1];
tools/clang/lib/Sema/SemaDecl.cpp 6761 ? TemplateParamLists[0]->getTemplateLoc()
11702 Args[Idx], VDecl, [this, Entity, Kind](Expr *E) {
11708 } else if (Res.get() != Args[Idx]) {
11709 Args[Idx] = Res.get();
12879 VarDecl *D = dyn_cast<VarDecl>(Group[i]);
tools/clang/lib/Sema/SemaDeclCXX.cpp 2640 = Context.getCanonicalType(Bases[idx]->getType());
2648 Diag(Bases[idx]->getBeginLoc(), diag::err_duplicate_base_class)
2649 << KnownBase->getType() << Bases[idx]->getSourceRange();
2653 Context.Deallocate(Bases[idx]);
2658 KnownBase = Bases[idx];
2659 Bases[NumGoodBases++] = Bases[idx];
2659 Bases[NumGoodBases++] = Bases[idx];
2689 QualType BaseType = Bases[idx]->getType();
2708 Diag(Bases[idx]->getBeginLoc(), diag::warn_inaccessible_base_class)
2710 << Bases[idx]->getSourceRange();
2712 assert(Bases[idx]->isVirtual());
2717 Context.Deallocate(Bases[idx]);
3297 TemplateParameterList* TemplateParams = TemplateParameterLists[0];
11028 << SourceRange(TemplateParamLists[1]->getTemplateLoc(),
11029 TemplateParamLists[TemplateParamLists.size()-1]->getRAngleLoc());
11031 TemplateParameterList *TemplateParams = TemplateParamLists[0];
13404 if (!Args[1]->isDefaultArgument())
13409 return !Args[0]->isDefaultArgument();
13440 Expr *SubExpr = ExprArgs[0];
14630 if (TempParamLists[I]->size()) {
tools/clang/lib/Sema/SemaExpr.cpp 5380 if (isPlaceholderToRemoveAsArg(args[i]->getType())) {
5381 ExprResult result = S.CheckPlaceholderExpr(args[i]);
5383 else args[i] = result.get();
5385 (void)S.CorrectDelayedTyposInExpr(args[i]);
5421 Sema->DefaultFunctionArrayLvalueConversion(ArgExprs[i++]);
6158 if (auto *DIE = dyn_cast<DesignatedInitExpr>(InitArgList[I])) {
6180 !isa<DesignatedInitExpr>(InitArgList[0])) {
6184 Diag(InitArgList[0]->getBeginLoc(), diag::note_designated_init_mixed)
6185 << InitArgList[0]->getSourceRange();
6188 isa<DesignatedInitExpr>(InitArgList[0])) {
6190 auto *DIE = cast<DesignatedInitExpr>(InitArgList[0]);
6193 Diag(InitArgList[I]->getBeginLoc(), diag::note_designated_init_mixed)
6194 << InitArgList[I]->getSourceRange();
6223 if (InitArgList[I]->getType()->isNonOverloadPlaceholderType()) {
6224 ExprResult result = CheckPlaceholderExpr(InitArgList[I]);
6230 InitArgList[I] = result.get();
tools/clang/lib/Sema/SemaExprCXX.cpp 1340 (Exprs.size() == 1 && isa<InitListExpr>(Exprs[0]))) &&
1372 !isa<InitListExpr>(Exprs[0])) {
1373 Expr *Arg = Exprs[0];
5673 LHS.get(), Best->BuiltinParamTypes[0], Best->Conversions[0],
5680 RHS.get(), Best->BuiltinParamTypes[1], Best->Conversions[1],
tools/clang/lib/Sema/SemaExprObjC.cpp 1568 if (Args[i]->isTypeDependent())
1574 result = checkUnknownAnyArg(SelLoc, Args[i], paramTy);
1576 result = DefaultArgumentPromotion(Args[i]);
1580 Args[i] = result.get();
1658 if (Args[i]->isTypeDependent())
1661 Expr *argExpr = Args[i];
1685 Args[i] = argE.get();
1712 Args[i] = ArgE.getAs<Expr>();
1717 if (typeArgs && Args[i]->isRValue() && paramType->isBlockPointerType() &&
1718 Args[i]->getType()->isBlockPointerType() &&
1720 ExprResult arg = Args[i];
1722 Args[i] = arg.get();
1730 if (Args[i]->isTypeDependent())
1733 ExprResult Arg = DefaultVariadicArgumentPromotion(Args[i], VariadicMethod,
1736 Args[i] = Arg.get();
1741 Diag(Args[NumNamedArgs]->getBeginLoc(),
1745 << SourceRange(Args[NumNamedArgs]->getBeginLoc(),
3233 RemoveSelectorFromWarningCache(*this, Args[0]);
tools/clang/lib/Sema/SemaInit.cpp 3899 (IsListInit && Args.size() == 1 && isa<InitListExpr>(Args[0]) &&
3938 Expr *Initializer = Args[0];
3993 (Args.size() == 1 && isa<InitListExpr>(Args[0]))) &&
3997 (IsListInit || IsInitListCopy) ? cast<InitListExpr>(Args[0]) : nullptr;
4021 UnwrappedArgs.size() == 1 && UnwrappedArgs[0]->isRValue() &&
4022 S.Context.hasSameUnqualifiedType(UnwrappedArgs[0]->getType(), DestType)) {
5600 if (Args[I]->getType()->isNonOverloadPlaceholderType()) {
5602 ExprResult result = S.CheckPlaceholderExpr(Args[I]);
5607 Args[I] = result.get();
5630 Initializer = Args[0];
5636 Args[0] = Initializer;
5665 else if (isa<InitListExpr>(Args[0]))
5668 TryReferenceInitialization(S, Entity, Kind, Args[0], *this);
5841 } else if (isa<InitListExpr>(Args[0])) {
7785 if (isa<InitListExpr>((Expr *)Args[0])) {
7818 return ExprResult(Args[0]);
7826 Args.size() == 1 && isa<InitListExpr>(Args[0]) &&
7831 Expr *Init = Args[0];
7845 S.Diag(Args[0]->getBeginLoc(), diag::err_opencl_atomic_init)
7847 << SourceRange(Entity.getDecl()->getBeginLoc(), Args[0]->getEndLoc());
7899 CurInit = Args[0];
8240 InitListExpr *InitList = cast<InitListExpr>(Args[0]);
9642 Candidate->Conversions[0].setBad(BadConversionSequence::no_conversion,
9724 ? dyn_cast<InitListExpr>(Inits[0])
tools/clang/lib/Sema/SemaOpenMP.cpp 6638 ResultIterSpaces[CurrentNestedLoopCount].PreCond = ISC.buildPreCond(
6640 ResultIterSpaces[CurrentNestedLoopCount].NumIterations =
6646 ResultIterSpaces[CurrentNestedLoopCount].CounterVar =
6648 ResultIterSpaces[CurrentNestedLoopCount].PrivateCounterVar =
6650 ResultIterSpaces[CurrentNestedLoopCount].CounterInit = ISC.buildCounterInit();
6651 ResultIterSpaces[CurrentNestedLoopCount].CounterStep = ISC.buildCounterStep();
6652 ResultIterSpaces[CurrentNestedLoopCount].InitSrcRange = ISC.getInitSrcRange();
6653 ResultIterSpaces[CurrentNestedLoopCount].CondSrcRange =
6655 ResultIterSpaces[CurrentNestedLoopCount].IncSrcRange =
6657 ResultIterSpaces[CurrentNestedLoopCount].Subtract = ISC.shouldSubtractStep();
6658 ResultIterSpaces[CurrentNestedLoopCount].IsStrictCompare =
6660 std::tie(ResultIterSpaces[CurrentNestedLoopCount].MinValue,
6661 ResultIterSpaces[CurrentNestedLoopCount].MaxValue) =
6663 ResultIterSpaces[CurrentNestedLoopCount].FinalCondition =
6665 ResultIterSpaces[CurrentNestedLoopCount].IsNonRectangularLB =
6667 ResultIterSpaces[CurrentNestedLoopCount].IsNonRectangularUB =
6669 ResultIterSpaces[CurrentNestedLoopCount].LoopDependentIdx =
6673 (ResultIterSpaces[CurrentNestedLoopCount].PreCond == nullptr ||
6674 ResultIterSpaces[CurrentNestedLoopCount].NumIterations == nullptr ||
6675 ResultIterSpaces[CurrentNestedLoopCount].CounterVar == nullptr ||
6676 ResultIterSpaces[CurrentNestedLoopCount].PrivateCounterVar == nullptr ||
6677 ResultIterSpaces[CurrentNestedLoopCount].CounterInit == nullptr ||
6678 ResultIterSpaces[CurrentNestedLoopCount].CounterStep == nullptr);
6685 ResultIterSpaces[CurrentNestedLoopCount].NumIterations);
6688 ResultIterSpaces[CurrentNestedLoopCount].CounterVar);
6706 ResultIterSpaces[CurrentNestedLoopCount].CounterVar, Captures,
6711 ResultIterSpaces[CurrentNestedLoopCount].CounterVar, Captures,
tools/clang/lib/Sema/SemaOverload.cpp 954 if (checkPlaceholderForOverload(S, Args[i], &unbridged))
3484 if (Best->Conversions[0].isEllipsis())
3487 User.Before = Best->Conversions[0].Standard;
3507 User.Before = Best->Conversions[0].Standard;
4562 ICS.UserDefined.Before = Best->Conversions[0].Standard;
6248 if (Candidate.Conversions[ConvIdx].isInitialized()) {
6257 Candidate.Conversions[ConvIdx] = TryCopyInitialization(
6262 if (Candidate.Conversions[ConvIdx].isBad()) {
6271 Candidate.Conversions[ConvIdx].setEllipsis();
6317 if (Args[i]->isTypeDependent()) {
6323 Expr *argExpr = Args[i];
6358 if (Args[i]->isTypeDependent()) {
6362 ExprResult Arg = DefaultVariadicArgumentPromotion(Args[i], VariadicMethod,
6740 Candidate.Conversions[ConvIdx] = TryObjectArgumentInitialization(
6743 if (Candidate.Conversions[ConvIdx].isBad()) {
6764 if (Candidate.Conversions[ConvIdx].isInitialized()) {
6773 Candidate.Conversions[ConvIdx]
6779 if (Candidate.Conversions[ConvIdx].isBad()) {
6788 Candidate.Conversions[ConvIdx].setEllipsis();
6969 Conversions[ConvIdx] = TryObjectArgumentInitialization(
6972 if (Conversions[ConvIdx].isBad())
6983 Conversions[ConvIdx]
6990 if (Conversions[ConvIdx].isBad())
7105 Candidate.Conversions[0] = TryObjectArgumentInitialization(
7109 if (Candidate.Conversions[0].isBad()) {
7304 Candidate.Conversions[0] = ObjectInit;
7311 Candidate.Conversions[0].setUserDefined();
7312 Candidate.Conversions[0].UserDefined.Before = ObjectInit.Standard;
7313 Candidate.Conversions[0].UserDefined.EllipsisConversion = false;
7314 Candidate.Conversions[0].UserDefined.HadMultipleCandidates = false;
7315 Candidate.Conversions[0].UserDefined.ConversionFunction = Conversion;
7316 Candidate.Conversions[0].UserDefined.FoundConversionFunction = FoundDecl;
7317 Candidate.Conversions[0].UserDefined.After
7318 = Candidate.Conversions[0].UserDefined.Before;
7319 Candidate.Conversions[0].UserDefined.After.setAsIdentityConversion();
7351 Candidate.Conversions[ArgIdx + 1]
7357 if (Candidate.Conversions[ArgIdx + 1].isBad()) {
7366 Candidate.Conversions[ArgIdx + 1].setEllipsis();
7515 Candidate.Conversions[ArgIdx]
7518 Candidate.Conversions[ArgIdx]
7525 if (Candidate.Conversions[ArgIdx].isBad()) {
9319 bool Cand1Bad = IsIllFormedConversion(Cand1.Conversions[ArgIdx]);
9320 bool Cand2Bad = IsIllFormedConversion(Cand2.Conversions[ArgIdx]);
9338 Cand1.Conversions[ArgIdx],
9339 Cand2.Conversions[ArgIdx])) {
9917 const ImplicitConversionSequence &Conv = Cand->Conversions[I];
10673 if (Cand->Conversions[I].isBad())
10906 L->Conversions[I],
10907 R->Conversions[I])) {
10974 if (Cand->Conversions[ConvIdx].isInitialized() &&
10975 Cand->Conversions[ConvIdx].isBad()) {
11019 if (Cand->Conversions[ConvIdx].isInitialized()) {
11023 Cand->Conversions[ConvIdx].setAsIdentityConversion(
11026 Cand->Conversions[ConvIdx] =
11033 if (!Unfixable && Cand->Conversions[ConvIdx].isBad())
11037 Cand->Conversions[ConvIdx].setEllipsis();
12659 Input, Best->BuiltinParamTypes[0], Best->Conversions[0], AA_Passing,
12891 *this, OpLoc, Cand.Conversions[ArgIdx],
12892 Best->Conversions[ArgIdx]) ==
13028 Args[0], Best->BuiltinParamTypes[0], Best->Conversions[0],
13035 Args[1], Best->BuiltinParamTypes[1], Best->Conversions[1],
13243 Args[0], Best->BuiltinParamTypes[0], Best->Conversions[0],
13250 Args[1], Best->BuiltinParamTypes[1], Best->Conversions[1],
13727 Best->Conversions[0].UserDefined.ConversionFunction);
13804 Arg = Args[i];
13834 ExprResult Arg = DefaultVariadicArgumentPromotion(Args[i], VariadicMethod,
tools/clang/lib/Sema/SemaStmtAsm.cpp 220 Constraint, extractRegisterName(Exprs[i], Target));
277 ExprResult ER = CheckPlaceholderExpr(Exprs[i]);
280 Exprs[i] = ER.get();
283 Expr *OutputExpr = Exprs[i];
317 if (RequireCompleteType(OutputExpr->getBeginLoc(), Exprs[i]->getType(),
360 ExprResult ER = CheckPlaceholderExpr(Exprs[i]);
363 Exprs[i] = ER.get();
365 Expr *InputExpr = Exprs[i];
402 ExprResult Result = DefaultFunctionArrayLvalueConversion(Exprs[i]);
406 Exprs[i] = Result.get();
420 const Type *Ty = Exprs[i]->getType().getTypePtr();
425 if (RequireCompleteType(InputExpr->getBeginLoc(), Exprs[i]->getType(),
497 const Type *Ty = Exprs[ConstraintIdx]->getType().getTypePtr();
506 targetDiag(Exprs[ConstraintIdx]->getBeginLoc(),
556 Expr *OutputExpr = Exprs[TiedTo];
557 Expr *InputExpr = Exprs[InputOpNo];
648 Exprs[InputOpNo] = InputExpr;
673 std::make_pair(Names[i]->getName(), Exprs[i]));
tools/clang/lib/Sema/SemaTemplate.cpp 907 TemplateArgsIn[I]));
7685 ? TemplateParameterLists[0]->getTemplateLoc() : KWLoc;
tools/clang/lib/Sema/SemaType.cpp 2552 QualType ParamType = Context.getAdjustedParameterType(ParamTypes[Idx]);
2568 ParamTypes[Idx] = ParamType;
tools/clang/tools/extra/clangd/FuzzyMatch.cpp 171 Roles[I] = packedLookup<CharRole>(CharRoles, Types);
175 Roles[Text.size() - 1] = packedLookup<CharRole>(CharRoles, Types);
tools/dsymutil/DwarfLinker.cpp 1423 memcpy(&Data[ValidReloc.Offset - BaseOffset], Buf, ValidReloc.Size);
tools/lld/COFF/Writer.cpp 486 newRelocs[i] = originalRelocs[i];
488 newRelocs[i].SymbolTableIndex = nextReplacement->second;
tools/lld/ELF/Driver.cpp 1651 if (Symbol *s = map.lookup(syms[i]))
1652 syms[i] = s;
tools/lld/ELF/OutputSections.cpp 226 in[i] = v[i].second;
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm.cpp 1035 applyFixupRelocatable(*ref, &atomContentBuffer[offset], fixupAddress,
1039 applyFixupFinal(*ref, &atomContentBuffer[offset], fixupAddress,
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp 573 applyFixupRelocatable(*ref, &atomContentBuffer[offset], fixupAddress,
576 applyFixupFinal(*ref, &atomContentBuffer[offset], fixupAddress,
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp 428 applyFixupRelocatable(*ref, &atomContentBuffer[offset],
432 applyFixupFinal(*ref, &atomContentBuffer[offset],
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp 562 applyFixupRelocatable(*ref, &atomContentBuffer[offset],
566 applyFixupFinal(*ref, &atomContentBuffer[offset],
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 1523 &newContent[atomInfo.offsetInSection +
tools/lld/wasm/Driver.cpp 636 if (Symbol *s = map.lookup(syms[i]))
637 syms[i] = s;
tools/lldb/source/Utility/StringExtractor.cpp 269 dest[0] = GetHexU8(fail_fill_value);
292 dest[0] = static_cast<uint8_t>(decode);
tools/llvm-objcopy/ELF/Object.cpp 1429 return Sections[Index - 1].get();
unittests/ADT/TinyPtrVectorTest.cpp 465 EXPECT_TRUE(mut_array[i] == data[i]);
466 mut_array[i] = 324 + mut_array[i];
466 mut_array[i] = 324 + mut_array[i];
467 EXPECT_TRUE(mut_array[i] == (324 + data[i]));
unittests/DebugInfo/MSF/MappedBlockStreamTest.cpp 60 ::memcpy(&Data[Offset], SrcData.data(), SrcData.size());
unittests/Support/BinaryStreamTest.cpp 80 ::memcpy(&Data[0], SrcData.data() + Ref.size(), BytesLeft);