Searched refs:Bits (Results 1 - 25 of 61) sorted by relevance

123

/freebsd-10-stable/contrib/llvm/include/llvm/ADT/
H A DPackedVector.h30 static T getValue(const BitVectorTy &Bits, unsigned Idx) { argument
33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
37 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { argument
40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i);
47 static T getValue(const BitVectorTy &Bits, unsigned Idx) { argument
50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
51 if (Bits[(Idx << (BitNum-1)) + BitNum-1])
56 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { argument
59 Bits.set((Idx << (BitNum-1)) + BitNum-1);
63 Bits[(Id
77 BitVectorTy Bits; member in class:llvm::PackedVector
[all...]
H A DBitVector.h32 BitWord *Bits; // Actual bits. member in class:llvm::BitVector
48 WordRef = &b.Bits[Idx / BITWORD_SIZE];
75 Bits = 0;
82 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
83 init_words(Bits, Capacity, t);
91 Bits = 0;
97 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
98 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord));
103 : Bits(RH
[all...]
H A DSparseBitVector.h57 BitWord Bits[BITWORDS_PER_ELEMENT]; member in struct:llvm::SparseBitVectorElement
62 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
68 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
76 if (Bits[i] != RHS.Bits[i])
88 return Bits[Idx];
97 if (Bits[i])
103 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE);
116 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE));
120 return Bits[Id
[all...]
H A DSmallBitVector.h180 uintptr_t Bits = getSmallBits(); local
182 return CountPopulation_32(Bits);
184 return CountPopulation_64(Bits);
215 uintptr_t Bits = getSmallBits(); local
216 if (Bits == 0)
219 return countTrailingZeros(Bits);
221 return countTrailingZeros(Bits);
231 uintptr_t Bits = getSmallBits(); local
233 Bits &= ~uintptr_t(0) << (Prev + 1);
234 if (Bits
[all...]
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Basic/
H A DLangOptions.cpp20 #define LANGOPT(Name, Bits, Default, Description) Name = Default;
21 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) set##Name(Default);
28 #define LANGOPT(Name, Bits, Default, Description)
29 #define BENIGN_LANGOPT(Name, Bits, Default, Description) Name = Default;
30 #define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Basic/
H A DDiagnosticOptions.h39 #define DIAGOPT(Name, Bits, Default) unsigned Name : Bits;
40 #define ENUM_DIAGOPT(Name, Type, Bits, Default)
46 #define DIAGOPT(Name, Bits, Default)
47 #define ENUM_DIAGOPT(Name, Type, Bits, Default) unsigned Name : Bits;
63 #define DIAGOPT(Name, Bits, Default)
64 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \
70 #define DIAGOPT(Name, Bits, Default) Name = Default;
71 #define ENUM_DIAGOPT(Name, Type, Bits, Defaul
[all...]
H A DLangOptions.h40 #define LANGOPT(Name, Bits, Default, Description) unsigned Name : Bits;
41 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description)
48 #define LANGOPT(Name, Bits, Default, Description)
49 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
50 unsigned Name : Bits;
91 #define LANGOPT(Name, Bits, Default, Description)
92 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Frontend/
H A DCodeGenOptions.h26 #define CODEGENOPT(Name, Bits, Default) unsigned Name : Bits;
27 #define ENUM_CODEGENOPT(Name, Type, Bits, Default)
31 #define CODEGENOPT(Name, Bits, Default)
32 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) unsigned Name : Bits;
147 #define CODEGENOPT(Name, Bits, Default)
148 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) \
154 #define CODEGENOPT(Name, Bits, Default) Name = Default;
155 #define ENUM_CODEGENOPT(Name, Type, Bits, Defaul
[all...]
/freebsd-10-stable/contrib/llvm/lib/Support/
H A DFoldingSet.cpp57 Bits.append(reinterpret_cast<unsigned *>(&Ptr),
61 Bits.push_back(I);
64 Bits.push_back(I);
84 Bits.push_back(unsigned(I >> 32));
89 Bits.push_back(Size);
98 Bits.append(Base, Base + Units);
110 Bits.push_back(V);
119 Bits.push_back(V);
135 Bits.push_back(V);
140 Bits
[all...]
/freebsd-10-stable/contrib/llvm/lib/MC/
H A DSubtargetFeature.cpp189 void SetImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, argument
198 Bits |= FE.Value;
199 SetImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize);
208 void ClearImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, argument
217 Bits &= ~FE.Value;
218 ClearImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize);
226 SubtargetFeatures::ToggleFeature(uint64_t Bits, const StringRef Feature, argument
234 if ((Bits & FeatureEntry->Value) == FeatureEntry->Value) {
235 Bits &= ~FeatureEntry->Value;
238 ClearImpliedBits(Bits, FeatureEntr
275 uint64_t Bits = 0; // Resulting bits local
[all...]
/freebsd-10-stable/contrib/llvm/include/llvm/MC/
H A DSubtargetFeature.h85 uint64_t ToggleFeature(uint64_t Bits, const StringRef String,
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/AST/
H A DTemplateName.h59 struct BitsTag Bits; member in union:clang::UncommonTemplateNameStorage::__anon2949
64 Bits.Kind = kind;
65 Bits.Size = size;
69 unsigned size() const { return Bits.Size; }
72 return Bits.Kind == Overloaded
78 return Bits.Kind == SubstTemplateTemplateParm
84 return Bits.Kind == SubstTemplateTemplateParmPack
H A DDeclBase.h532 unsigned Bits = NextInContextAndBits.getInt(); local
534 Bits |= TopLevelDeclInObjCContainerFlag;
536 Bits &= ~TopLevelDeclInObjCContainerFlag;
537 NextInContextAndBits.setInt(Bits);
550 unsigned Bits = NextInContextAndBits.getInt(); local
552 Bits |= ModulePrivateFlag;
554 Bits &= ~ModulePrivateFlag;
555 NextInContextAndBits.setInt(Bits);
/freebsd-10-stable/contrib/llvm/lib/Target/AArch64/
H A DAArch64BranchFixupPass.cpp86 unsigned Bits = Unalign ? Unalign : KnownBits; local
89 if (Size & ((1u << Bits) - 1))
90 Bits = countTrailingZeros(Size);
91 return Bits;
289 unsigned Bits = 0; local
298 Bits = 14 + 2;
306 Bits = 19 + 2;
309 Bits = 26 + 2;
314 ImmBranches.push_back(ImmBranch(I, Bits, IsCond));
H A DAArch64InstrInfo.cpp642 uint64_t Bits = static_cast<uint64_t>(abs64(NumBytes)); local
644 .addImm(0xffff & Bits).addImm(0)
647 Bits >>= 16;
648 if (Bits & 0xffff) {
651 .addImm(0xffff & Bits).addImm(1)
655 Bits >>= 16;
656 if (Bits & 0xffff) {
659 .addImm(0xffff & Bits).addImm(2)
663 Bits >>= 16;
664 if (Bits
[all...]
/freebsd-10-stable/contrib/llvm/lib/Target/AArch64/Utils/
H A DAArch64BaseInfo.cpp787 uint32_t Bits; local
792 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2;
795 return Bits;
799 A64SysReg::SysRegMapper::toString(uint32_t Bits, bool &Valid) const { argument
801 if (SysRegPairs[i].Value == Bits) {
808 if (InstPairs[i].Value == Bits) {
814 uint32_t Op0 = (Bits >> 14) & 0x3;
815 uint32_t Op1 = (Bits >> 11) & 0x7;
816 uint32_t CRn = (Bits >> 7) & 0xf;
817 uint32_t CRm = (Bits >>
899 uint64_t Bits= Val.bitcastToAPInt().getLimitedValue(); local
946 isLogicalImm(unsigned RegWidth, uint64_t Imm, uint32_t &Bits) argument
1021 isLogicalImmBits(unsigned RegWidth, uint32_t Bits, uint64_t &Imm) argument
[all...]
/freebsd-10-stable/contrib/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcMCCodeEmitter.cpp73 unsigned Bits = getBinaryCodeForInstr(MI, Fixups); local
77 OS << (char)(Bits >> 24);
78 Bits <<= 8;
/freebsd-10-stable/contrib/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp127 unsigned Bits = Unalign ? Unalign : KnownBits; local
130 if (Size & ((1u << Bits) - 1))
131 Bits = countTrailingZeros(Size);
132 return Bits;
670 unsigned Bits = 0; local
684 Bits = 24;
690 Bits = 8;
694 Bits = 11;
700 Bits = 20;
704 Bits
727 unsigned Bits = 0; local
1703 unsigned Bits = 0; local
1757 unsigned Bits = 0; local
[all...]
H A DARMSubtarget.cpp250 uint64_t Bits = getFeatureBits(); local
251 if ((Bits & ARM::ProcA5 || Bits & ARM::ProcA8) && // Where this matters
/freebsd-10-stable/contrib/llvm/tools/llvm-bcanalyzer/
H A Dllvm-bcanalyzer.cpp470 static void PrintSize(double Bits) { argument
471 outs() << format("%.2f/%.2fB/%luW", Bits, Bits/8,(unsigned long)(Bits/32));
473 static void PrintSize(uint64_t Bits) { argument
474 outs() << format("%lub/%.2fB/%luW", (unsigned long)Bits,
475 (double)Bits/8, (unsigned long)(Bits/32));
598 outs() << "\t\t Count # Bits %% Abv Record Kind\n";
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCCodeEmitter.cpp87 uint64_t Bits = getBinaryCodeForInstr(MI, Fixups);
98 OS << (char)(Bits >> ShiftValue);
99 Bits <<= 8;
/freebsd-10-stable/contrib/llvm/include/llvm/Support/
H A DMathExtras.h479 inline double BitsToDouble(uint64_t Bits) { argument
484 T.L = Bits;
490 inline float BitsToFloat(uint32_t Bits) { argument
495 T.I = Bits;
/freebsd-10-stable/contrib/llvm/lib/TableGen/
H A DTGLexer.h46 Bit, Bits, Class, Code, Dag, Def, Foreach, Defm, Field, In, Int, Let, List, enumerator in enum:llvm::tgtok::TokKind
H A DTGParser.h36 std::vector<unsigned> Bits; member in struct:llvm::LetRecord
41 : Name(N), Bits(B), Value(V), Loc(L) {
/freebsd-10-stable/contrib/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCCodeEmitter.cpp95 uint64_t Bits = getBinaryCodeForInstr(MI, Fixups); local
100 OS << uint8_t(Bits >> ShiftValue);

Completed in 129 milliseconds

123