Searched defs:SmallVector (Results 1 - 9 of 9) sorted by relevance

/external/clang/test/SemaCXX/
H A Dinvalid-instantiated-field-decl.cpp14 class SmallVector : public SmallVectorImpl<T> { class in inherits:SmallVectorImpl
25 SmallVector() : SmallVectorImpl<T>(NumInlineEltsElts) { function in class:SmallVector
34 SmallVector<CallSite, 2> DevirtualizedCalls; // expected-note {{in instantiation of template class 'SmallVector<CallSite, 2>' requested}}
/external/clang/lib/Format/
H A DFormatToken.cpp19 #include "llvm/ADT/SmallVector.h"
140 SmallVector<bool, 8> MustBreakBeforeItem;
144 SmallVector<unsigned, 8> EndOfLineItemLength;
233 for (SmallVector<ColumnFormat, 4>::const_reverse_iterator
201 assert(i < MustBreakBeforeItem.size()); if (MustBreakBeforeItem[i] || Column == Columns) { ++Format.LineCount; Column = 0; } if (Column == Columns - 1) HasRowWithSufficientColumns = true; unsigned length = (Column == Columns - 1) ? EndOfLineItemLength[i] : ItemLengths[i]; Format.ColumnSizes[Column] = std::max(Format.ColumnSizes[Column], length); ++Column; } if (!HasRowWithSufficientColumns) break; Format.TotalWidth = Columns - 1; for (unsigned i = 0; i < Columns; ++i) { Format.TotalWidth += Format.ColumnSizes[i]; } if (Format.TotalWidth > Style.ColumnLimit) continue; Formats.push_back(Format); } } const CommaSeparatedList::ColumnFormat * CommaSeparatedList::getColumnFormat(unsigned RemainingCharacters) const { const ColumnFormat *BestFormat = nullptr; for (SmallVector<ColumnFormat, 4>::const_reverse_iterator I = Formats.rbegin(), E = Formats.rend(); I != E; ++I) { if (I->TotalWidth <= RemainingCharacters) argument
/external/llvm/include/llvm/ADT/
H A DArrayRef.h14 #include "llvm/ADT/SmallVector.h"
68 /// Construct an ArrayRef from a SmallVector. This is templated in order to
216 /// Construct an MutableArrayRef from a SmallVector.
292 /// Construct an ArrayRef from a SmallVector.
298 /// Construct an ArrayRef from a SmallVector.
300 ArrayRef<T> makeArrayRef(const SmallVector<T, N> &Vec) { argument
H A DSmallVector.h1 //===- llvm/ADT/SmallVector.h - 'Normally small' vectors --------*- C++ -*-===//
10 // This file defines the SmallVector class.
317 // Use memcpy for PODs iterated by pointers (which includes SmallVector
343 /// SmallVector class to reduce code duplication based on the SmallVector 'N'
414 /// append - Add the specified range to the end of the SmallVector.
430 /// append - Add the specified range to the end of the SmallVector.
825 /// Storage for the SmallVector elements which aren't contained in
836 /// SmallVector - This is a 'vector' (really, a variable-sized array), optimized
845 class SmallVector class in namespace:llvm
849 SmallVector() : SmallVectorImpl<T>(N) { function in class:llvm::SmallVector
852 explicit SmallVector(unsigned Size, const T &Value = T()) function in class:llvm::SmallVector
858 SmallVector(ItTy S, ItTy E) : SmallVectorImpl<T>(N) { function in class:llvm::SmallVector
863 explicit SmallVector(const llvm::iterator_range<RangeTy> R) function in class:llvm::SmallVector
868 SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(N) { function in class:llvm::SmallVector
878 SmallVector(SmallVector &&RHS) : SmallVectorImpl<T>(N) { function in class:llvm::SmallVector
890 capacity_in_bytes(const SmallVector<T, N> &X) argument
[all...]
/external/clang/lib/Lex/
H A DLiteralSupport.cpp1068 SmallVector<uint32_t, 4> codepoint_buffer;
946 assert(C < radix && �); CharVal = C; OldVal = Val; Val *= RadixVal; OverflowOccurred |= Val.udiv(RadixVal) != OldVal; Val += CharVal; OverflowOccurred |= Val.ult(CharVal); } return OverflowOccurred; } llvm::APFloat::opStatus NumericLiteralParser::GetFloatValue(llvm::APFloat &Result) { using llvm::APFloat; unsigned n = std::min(SuffixBegin - ThisTokBegin, ThisTokEnd - ThisTokBegin); llvm::SmallString<16> Buffer; StringRef Str(ThisTokBegin, n); if (Str.find(�) != StringRef::npos) { Buffer.reserve(n); std::remove_copy_if(Str.begin(), Str.end(), std::back_inserter(Buffer), &isDigitSeparator); Str = Buffer; } return Result.convertFromString(Str, APFloat::rmNearestTiesToEven); } CharLiteralParser::CharLiteralParser(const char *begin, const char *end, SourceLocation Loc, Preprocessor &PP, tok::TokenKind kind) { HadError = false; Kind = kind; const char *TokBegin = begin; if (Kind != tok::char_constant) { ++begin; } assert(begin[0] == � && �); ++begin; if (end[-1] != �) { const char *UDSuffixEnd = end; do { --end; } while (end[-1] != �); expandUCNs(UDSuffixBuf, StringRef(end, UDSuffixEnd - end)); UDSuffixOffset = end - TokBegin; } assert(end != begin && �); --end; assert(PP.getTargetInfo().getCharWidth() == 8 && �); assert(PP.getTargetInfo().getIntWidth() <= 64 && (PP.getTargetInfo().getIntWidth() & 7) == 0 && �); assert(PP.getTargetInfo().getWCharWidth() <= 64 && �); SmallVector<uint32_t, 4> codepoint_buffer; codepoint_buffer.resize(end - begin); uint32_t *buffer_begin = &codepoint_buffer.front(); uint32_t *buffer_end = buffer_begin + codepoint_buffer.size(); uint32_t largest_character_for_kind; if (tok::wide_char_constant == Kind) { largest_character_for_kind = 0xFFFFFFFFu >> (32-PP.getTargetInfo().getWCharWidth()); } else if (tok::utf16_char_constant == Kind) { largest_character_for_kind = 0xFFFF; } else if (tok::utf32_char_constant == Kind) { largest_character_for_kind = 0x10FFFF; } else { largest_character_for_kind = 0x7Fu; } while (begin != end) { if (begin[0] != �) { char const *start = begin; do { ++begin; } while (begin != end && *begin != �); char const *tmp_in_start = start; uint32_t *tmp_out_start = buffer_begin; ConversionResult res = ConvertUTF8toUTF32(reinterpret_cast<UTF8 const **>(&start), reinterpret_cast<UTF8 const *>(begin), &buffer_begin, buffer_end, strictConversion); if (res != conversionOK) { bool NoErrorOnBadEncoding = isAscii(); unsigned Msg = diag::err_bad_character_encoding; if (NoErrorOnBadEncoding) Msg = diag::warn_bad_character_encoding; PP.Diag(Loc, Msg); if (NoErrorOnBadEncoding) { start = tmp_in_start; buffer_begin = tmp_out_start; for (; start != begin; ++start, ++buffer_begin) *buffer_begin = static_cast<uint8_t>(*start); } else { HadError = true; } } else { for (; tmp_out_start < buffer_begin; ++tmp_out_start) { if (*tmp_out_start > largest_character_for_kind) { HadError = true; PP.Diag(Loc, diag::err_character_too_large); } } } continue; } if (begin[1] == � || begin[1] == �) { unsigned short UcnLen = 0; if (!ProcessUCNEscape(TokBegin, begin, end, *buffer_begin, UcnLen, FullSourceLoc(Loc, PP.getSourceManager()), &PP.getDiagnostics(), PP.getLangOpts(), true)) { HadError = true; } else if (*buffer_begin > largest_character_for_kind) argument
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp260 SmallVector<SDValue, 8> Ops(NumIntermediates);
489 SmallVector<SDValue, 16> Ops;
544 SmallVector<SDValue, 8> Ops(NumIntermediates);
588 SmallVector<EVT, 4> ValueVTs;
599 SmallVector<MVT, 4> RegVTs;
605 SmallVector<unsigned, 4> Regs;
609 RegsForValue(const SmallVector<unsigned, 4> &regs, argument
677 SmallVector<SDValue, 4> Values(ValueVTs.size());
678 SmallVector<SDValue, 8> Parts;
770 SmallVector<SDValu
[all...]
/external/llvm/lib/IR/
H A DConstantsContext.h173 const SmallVector<unsigned, 4> &IdxList,
181 const SmallVector<unsigned, 4> Indices;
199 const SmallVector<unsigned, 4> &IdxList,
208 const SmallVector<unsigned, 4> Indices;
331 SmallVector<unsigned, 4> indices;
659 SmallVector<Constant*, 8> CPOperands;
172 ExtractValueConstantExpr(Constant *Agg, const SmallVector<unsigned, 4> &IdxList, Type *DestTy) argument
198 InsertValueConstantExpr(Constant *Agg, Constant *Val, const SmallVector<unsigned, 4> &IdxList, Type *DestTy) argument
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
H A DAMDILCFGStructurizer.cpp17 #include "llvm/ADT/SmallVector.h"
95 void ReverseVector(SmallVector<NodeT *, DEFAULT_VEC_SLOTS> &Src) {
217 //SmallVector<InstrT*, DEFAULT_VEC_SLOTS> succInstr;
291 typedef SmallVector<BlockT *, 32> BlockTSmallerVector;
358 void addDummyExitBlock(SmallVector<BlockT *, DEFAULT_VEC_SLOTS> &RetBlocks);
391 typename SmallVector<BlockT *, DEFAULT_VEC_SLOTS>::const_iterator IterStart,
392 typename SmallVector<BlockT *, DEFAULT_VEC_SLOTS>::const_iterator IterEnd);
405 SmallVector<BlockT *, DEFAULT_VEC_SLOTS> orderedBlks;
468 SmallVector<BlockT *, DEFAULT_VEC_SLOTS> retBlks;
487 for (typename SmallVector<Block
2554 countActiveBlock(typename SmallVector<BlockT*, DEFAULT_VEC_SLOTS>::const_iterator iterStart, typename SmallVector<BlockT*, DEFAULT_VEC_SLOTS>::const_iterator iterEnd) argument
[all...]
/external/mesa3d/src/gallium/drivers/radeon/
H A DAMDILCFGStructurizer.cpp17 #include "llvm/ADT/SmallVector.h"
95 void ReverseVector(SmallVector<NodeT *, DEFAULT_VEC_SLOTS> &Src) {
217 //SmallVector<InstrT*, DEFAULT_VEC_SLOTS> succInstr;
291 typedef SmallVector<BlockT *, 32> BlockTSmallerVector;
358 void addDummyExitBlock(SmallVector<BlockT *, DEFAULT_VEC_SLOTS> &RetBlocks);
391 typename SmallVector<BlockT *, DEFAULT_VEC_SLOTS>::const_iterator IterStart,
392 typename SmallVector<BlockT *, DEFAULT_VEC_SLOTS>::const_iterator IterEnd);
405 SmallVector<BlockT *, DEFAULT_VEC_SLOTS> orderedBlks;
468 SmallVector<BlockT *, DEFAULT_VEC_SLOTS> retBlks;
487 for (typename SmallVector<Block
2554 countActiveBlock(typename SmallVector<BlockT*, DEFAULT_VEC_SLOTS>::const_iterator iterStart, typename SmallVector<BlockT*, DEFAULT_VEC_SLOTS>::const_iterator iterEnd) argument
[all...]

Completed in 235 milliseconds