A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clang.llvm.org/doxygen/classclang_1_1interp_1_1Block.html below:

clang: clang::interp::Block Class Reference

A memory block, either on the stack or in the heap. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/ByteCode/InterpBlock.h"

  Block (unsigned EvalID, const std::optional< unsigned > &DeclID, const Descriptor *Desc, bool IsStatic=false, bool IsExtern=false, bool IsWeak=false)   Creates a new block.
    Block (unsigned EvalID, const Descriptor *Desc, bool IsStatic=false, bool IsExtern=false, bool IsWeak=false)   const DescriptorgetDescriptor () const   Returns the block's descriptor.
  bool  hasPointers () const   Checks if the block has any live pointers.
  bool  isExtern () const   Checks if the block is extern.
  bool  isStatic () const   Checks if the block has static storage duration.
  bool  isTemporary () const   Checks if the block is temporary.
  bool  isWeak () const   bool  isDynamic () const   unsigned  getSize () const   Returns the size of the block.
  std::optional< unsignedgetDeclID () const   Returns the declaration ID.
  bool  isInitialized () const   Returns whether the data of this block has been initialized via invoking the Ctor func.
  unsigned  getEvalID () const   The Evaluation ID this block was created in.
  std::byte *  data ()   Returns a pointer to the stored data.
  const std::byte *  data () const   std::byte *  rawData ()   Returns a pointer to the raw data, including metadata.
  const std::byte *  rawData () const   void  invokeCtor ()   Invokes the constructor.
  void  invokeDtor ()   Invokes the Destructor.
  void  dump () const   void  dump (llvm::raw_ostream &OS) const  

A memory block, either on the stack or in the heap.

The storage described by the block is immediately followed by optional metadata, which is followed by the actual data.

Block* rawData() data() │ │ │ │ │ │ ▼ ▼ ▼ ┌───────────────┬─────────────────────────┬─────────────────┐ │ Block │ Metadata │ Data │ │ sizeof(Block) │ Desc->getMetadataSize() │ Desc->getSize() │ └───────────────┴─────────────────────────┴─────────────────┘

Desc->getAllocSize() describes the size after the Block, i.e. the data size and the metadata size.

Definition at line 49 of file InterpBlock.h.

◆ Block() [1/2] ◆ Block() [2/2] ◆ data() [1/2] std::byte * clang::interp::Block::data ( ) inline ◆ data() [2/2] const std::byte * clang::interp::Block::data ( ) const inline ◆ dump() [1/2] void clang::interp::Block::dump ( ) const inline ◆ dump() [2/2] LLVM_DUMP_METHOD void Block::dump ( llvm::raw_ostream &  OS ) const ◆ getDeclID() std::optional< unsigned > clang::interp::Block::getDeclID ( ) const inline ◆ getDescriptor() const Descriptor * clang::interp::Block::getDescriptor ( ) const inline ◆ getEvalID() unsigned clang::interp::Block::getEvalID ( ) const inline ◆ getSize() unsigned clang::interp::Block::getSize ( ) const inline ◆ hasPointers() bool clang::interp::Block::hasPointers ( ) const inline ◆ invokeCtor() void clang::interp::Block::invokeCtor ( ) inline ◆ invokeDtor() void clang::interp::Block::invokeDtor ( ) inline ◆ isDynamic() bool clang::interp::Block::isDynamic ( ) const inline ◆ isExtern() bool clang::interp::Block::isExtern ( ) const inline ◆ isInitialized() bool clang::interp::Block::isInitialized ( ) const inline ◆ isStatic() bool clang::interp::Block::isStatic ( ) const inline ◆ isTemporary() bool clang::interp::Block::isTemporary ( ) const inline ◆ isWeak() bool clang::interp::Block::isWeak ( ) const inline ◆ rawData() [1/2] std::byte * clang::interp::Block::rawData ( ) inline ◆ rawData() [2/2] const std::byte * clang::interp::Block::rawData ( ) const inline

Definition at line 107 of file InterpBlock.h.

◆ DeadBlock ◆ DynamicAllocator ◆ InterpState ◆ Pointer

The documentation for this class was generated from the following files:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4