clang 22.0.0git
clang::CIRGen::CIRGenTypeCache Struct Reference

This structure provides a set of types that are commonly used during IR emission. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenTypeCache.h"

Inheritance diagram for clang::CIRGen::CIRGenTypeCache:
[legend]

Public Member Functions

 CIRGenTypeCache ()
clang::CharUnits getSizeAlign () const
clang::CharUnits getPointerAlign () const

Public Attributes

cir::VoidType VoidTy
cir::IntType SInt8Ty
cir::IntType SInt16Ty
cir::IntType SInt32Ty
cir::IntType SInt64Ty
cir::IntType SInt128Ty
cir::IntType UInt8Ty
cir::IntType UInt16Ty
cir::IntType UInt32Ty
cir::IntType UInt64Ty
cir::IntType UInt128Ty
cir::FP16Type FP16Ty
cir::BF16Type BFloat16Ty
cir::SingleType FloatTy
cir::DoubleType DoubleTy
cir::FP80Type FP80Ty
cir::FP128Type FP128Ty
mlir::Type UCharTy
 ClangIR char.
union { 
   mlir::Type   UIntPtrTy 
   mlir::Type   SizeTy 
}; 
 intptr_t, size_t, and ptrdiff_t, which we assume are the same size.
mlir::Type PtrDiffTy
cir::PointerType VoidPtrTy
 void* in address space 0
cir::PointerType UInt8PtrTy
union { 
   unsigned char   PointerAlignInBytes 
   unsigned char   PointerSizeInBytes 
}; 
 The size and alignment of a pointer into the generic address space.
unsigned char SizeAlignInBytes
 The alignment of size_t.

Detailed Description

This structure provides a set of types that are commonly used during IR emission.

It's initialized once in CodeGenModule's constructor and then copied around into new CIRGenFunction's.

Definition at line 24 of file CIRGenTypeCache.h.

Constructor & Destructor Documentation

◆ CIRGenTypeCache()

clang::CIRGen::CIRGenTypeCache::CIRGenTypeCache ( )
inline

Definition at line 25 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenFunction::CIRGenFunction().

Member Function Documentation

◆ getPointerAlign()

clang::CharUnits clang::CIRGen::CIRGenTypeCache::getPointerAlign ( ) const
inline

Definition at line 80 of file CIRGenTypeCache.h.

References clang::CharUnits::fromQuantity(), and PointerAlignInBytes.

◆ getSizeAlign()

clang::CharUnits clang::CIRGen::CIRGenTypeCache::getSizeAlign ( ) const
inline

Member Data Documentation

◆ [union]

intptr_t, size_t, and ptrdiff_t, which we assume are the same size.

◆ [union]

The size and alignment of a pointer into the generic address space.

◆ BFloat16Ty

cir::BF16Type clang::CIRGen::CIRGenTypeCache::BFloat16Ty

Definition at line 46 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ DoubleTy

cir::DoubleType clang::CIRGen::CIRGenTypeCache::DoubleTy

Definition at line 48 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ FloatTy

cir::SingleType clang::CIRGen::CIRGenTypeCache::FloatTy

Definition at line 47 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ FP128Ty

cir::FP128Type clang::CIRGen::CIRGenTypeCache::FP128Ty

Definition at line 50 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ FP16Ty

cir::FP16Type clang::CIRGen::CIRGenTypeCache::FP16Ty

Definition at line 45 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ FP80Ty

cir::FP80Type clang::CIRGen::CIRGenTypeCache::FP80Ty

Definition at line 49 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ PointerAlignInBytes

unsigned char clang::CIRGen::CIRGenTypeCache::PointerAlignInBytes

Definition at line 69 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule(), and getPointerAlign().

◆ PointerSizeInBytes

unsigned char clang::CIRGen::CIRGenTypeCache::PointerSizeInBytes

Definition at line 70 of file CIRGenTypeCache.h.

◆ PtrDiffTy

mlir::Type clang::CIRGen::CIRGenTypeCache::PtrDiffTy

Definition at line 61 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ SInt128Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::SInt128Ty

Definition at line 35 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ SInt16Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::SInt16Ty

Definition at line 32 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ SInt32Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::SInt32Ty

Definition at line 33 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ SInt64Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::SInt64Ty

Definition at line 34 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ SInt8Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::SInt8Ty

Definition at line 31 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ SizeAlignInBytes

unsigned char clang::CIRGen::CIRGenTypeCache::SizeAlignInBytes

The alignment of size_t.

Definition at line 74 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule(), and getSizeAlign().

◆ SizeTy

mlir::Type clang::CIRGen::CIRGenTypeCache::SizeTy

◆ UCharTy

mlir::Type clang::CIRGen::CIRGenTypeCache::UCharTy

ClangIR char.

Definition at line 53 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ UInt128Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::UInt128Ty

Definition at line 42 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ UInt16Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::UInt16Ty

Definition at line 39 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ UInt32Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::UInt32Ty

Definition at line 40 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ UInt64Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::UInt64Ty

Definition at line 41 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ UInt8PtrTy

cir::PointerType clang::CIRGen::CIRGenTypeCache::UInt8PtrTy

Definition at line 65 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ UInt8Ty

cir::IntType clang::CIRGen::CIRGenTypeCache::UInt8Ty

Definition at line 38 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ UIntPtrTy

mlir::Type clang::CIRGen::CIRGenTypeCache::UIntPtrTy

Definition at line 57 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ VoidPtrTy

cir::PointerType clang::CIRGen::CIRGenTypeCache::VoidPtrTy

void* in address space 0

Definition at line 64 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().

◆ VoidTy

cir::VoidType clang::CIRGen::CIRGenTypeCache::VoidTy

Definition at line 28 of file CIRGenTypeCache.h.

Referenced by clang::CIRGen::CIRGenModule::CIRGenModule().


The documentation for this struct was generated from the following file: