MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memory), i.e. More...
#include "llvm/ADT/ArrayRef.h"
N elements of the array. N elements. N elements. N elements of the array. N elements of the array. N elements. N elements. MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memory), i.e.
a start pointer and a length. It allows various APIs to take and modify consecutive elements easily and conveniently.
This class does not own the underlying data, it is expected to be used in situations where the data resides in some other buffer, whose lifetime extends past that of the MutableArrayRef. For this reason, it is not in general safe to store a MutableArrayRef.
This is intended to be trivially copyable, so it should be passed by value.
Definition at line 299 of file ArrayRef.h.
Definition at line 307 of file ArrayRef.h.
Definition at line 303 of file ArrayRef.h.
Definition at line 305 of file ArrayRef.h.
Definition at line 309 of file ArrayRef.h.
Definition at line 311 of file ArrayRef.h.
Definition at line 306 of file ArrayRef.h.
Definition at line 302 of file ArrayRef.h.
Definition at line 304 of file ArrayRef.h.
Definition at line 308 of file ArrayRef.h.
Definition at line 310 of file ArrayRef.h.
Definition at line 301 of file ArrayRef.h.
Construct an empty MutableArrayRef.
Referenced by llvm::OwningArrayRef< T >::OwningArrayRef(), and llvm::OwningArrayRef< T >::OwningArrayRef().
Construct a MutableArrayRef from a single element.
Definition at line 317 of file ArrayRef.h.
Construct a MutableArrayRef from a pointer and length.
Definition at line 320 of file ArrayRef.h.
Construct a MutableArrayRef from a range.
Definition at line 324 of file ArrayRef.h.
Construct a MutableArrayRef from a type that has a data() method that returns a pointer convertible to T *.
Definition at line 335 of file ArrayRef.h.
Construct a MutableArrayRef from a C array.
Definition at line 339 of file ArrayRef.h.
back - Get the last element.
Definition at line 356 of file ArrayRef.h.
Referenced by llvm::performOptimizedStructLayout().
Definition at line 343 of file ArrayRef.h.
Referenced by combineConcatVectorOfShuffleAndItsOperands(), llvm::lto::findThinLTOModule(), llvm::performOptimizedStructLayout(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), toUTF8(), and turnVectorIntoSplatVector().
consume_back() - Returns the last element and drops it from ArrayRef.
Definition at line 369 of file ArrayRef.h.
consume_front() - Returns the first element and drops it from ArrayRef.
Definition at line 362 of file ArrayRef.h.
Definition at line 341 of file ArrayRef.h.
Referenced by llvm::detail::IEEEFloat::convertToInteger(), llvm::jitlink::LinkGraph::createMutableContentBlock(), llvm::object::Decompressor::decompress(), llvm::jitlink::finalizeBlockRelax(), llvm::pdb::TpiStreamBuilder::finalizeMsfLayout(), getOpenFileImpl(), llvm::performOptimizedStructLayout(), llvm::cas::ondisk::OnDiskKeyValueDB::put(), llvm::jitlink::Block::setMutableContent(), llvm::MCDecodedPseudoProbeInlineTree::setProbes(), llvm::orc::MachOBuilderDylibLoadCommand< LCType >::write(), llvm::orc::MachOBuilderLoadCommand< MachO::LC_RPATH >::write(), and llvm::MachObjectWriter::writeObject().
Definition at line 393 of file ArrayRef.h.
Drop the first N elements of the array.
Definition at line 388 of file ArrayRef.h.
Referenced by llvm::AMDGPULegalizerInfo::buildMultiply(), and getOpenFileImpl().
Return a copy of *this with the first N elements not satisfying the given predicate removed.
Definition at line 408 of file ArrayRef.h.
Return a copy of *this with the first N elements satisfying the given predicate removed.
Definition at line 401 of file ArrayRef.h.
Definition at line 344 of file ArrayRef.h.
Referenced by combineConcatVectorOfShuffleAndItsOperands(), llvm::performOptimizedStructLayout(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), toUTF8(), and turnVectorIntoSplatVector().
front - Get the first element.
Definition at line 350 of file ArrayRef.h.
Definition at line 443 of file ArrayRef.h.
Definition at line 346 of file ArrayRef.h.
Definition at line 347 of file ArrayRef.h.
slice(n) - Chop off the first N elements of the array.
Definition at line 383 of file ArrayRef.h.
slice(n, m) - Chop off the first N elements of the array, and keep M elements in the array.
Definition at line 377 of file ArrayRef.h.
Referenced by llvm::MCFragment::getFixups(), llvm::MCFragment::getVarContents(), llvm::MCFragment::getVarContents(), llvm::MCFragment::getVarFixups(), llvm::insertMultibyteShift(), and multikeySort().
Return a copy of *this with only the last N elements.
Definition at line 420 of file ArrayRef.h.
Referenced by combineConcatVectorOfShuffleAndItsOperands().
Return a copy of *this with only the first N elements.
Definition at line 413 of file ArrayRef.h.
Referenced by combineConcatVectorOfShuffleAndItsOperands().
Return the first N elements of this Array that don't satisfy the given predicate.
Definition at line 436 of file ArrayRef.h.
Return the first N elements of this Array that satisfy the given predicate.
Definition at line 429 of file ArrayRef.h.