clang 22.0.0git
|
Namespaces | |
namespace | acc |
namespace | detail |
namespace | direct |
Classes | |
class | ABIArgInfo |
class | CIRBaseBuilderTy |
class | CIRDataLayout |
class | CIRGenAction |
class | CIRGenConsumer |
class | CIRGenerator |
class | EmitAssemblyAction |
class | EmitBCAction |
class | EmitCIRAction |
class | EmitLLVMAction |
class | EmitObjAction |
struct | MissingFeatures |
Enumerations | |
enum class | OverflowBehavior { None = 0 , NoSignedWrap = 1 << 0 , NoUnsignedWrap = 1 << 1 , Saturated = 1 << 2 } |
enum | TypeEvaluationKind { TEK_Scalar , TEK_Complex , TEK_Aggregate } |
Functions | |
mlir::LogicalResult | runCIRToCIRPasses (mlir::ModuleOp theModule, mlir::MLIRContext &mlirCtx, clang::ASTContext &astCtx, bool enableVerifier, bool enableCIRSimplify) |
constexpr OverflowBehavior | operator| (OverflowBehavior a, OverflowBehavior b) |
constexpr OverflowBehavior | operator& (OverflowBehavior a, OverflowBehavior b) |
constexpr OverflowBehavior & | operator|= (OverflowBehavior &a, OverflowBehavior b) |
constexpr OverflowBehavior & | operator&= (OverflowBehavior &a, OverflowBehavior b) |
void | buildTerminatedBody (mlir::OpBuilder &builder, mlir::Location loc) |
static bool | isExternalLinkage (GlobalLinkageKind linkage) |
static bool | isAvailableExternallyLinkage (GlobalLinkageKind linkage) |
static bool | isLinkOnceAnyLinkage (GlobalLinkageKind linkage) |
static bool | isLinkOnceODRLinkage (GlobalLinkageKind linkage) |
static bool | isLinkOnceLinkage (GlobalLinkageKind linkage) |
static bool | isWeakAnyLinkage (GlobalLinkageKind linkage) |
static bool | isWeakODRLinkage (GlobalLinkageKind linkage) |
static bool | isWeakLinkage (GlobalLinkageKind linkage) |
static bool | isInternalLinkage (GlobalLinkageKind linkage) |
static bool | isPrivateLinkage (GlobalLinkageKind linkage) |
static bool | isLocalLinkage (GlobalLinkageKind linkage) |
static bool | isExternalWeakLinkage (GlobalLinkageKind linkage) |
static LLVM_ATTRIBUTE_UNUSED bool | isCommonLinkage (GlobalLinkageKind linkage) |
static LLVM_ATTRIBUTE_UNUSED bool | isValidDeclarationLinkage (GlobalLinkageKind linkage) |
static LLVM_ATTRIBUTE_UNUSED bool | isInterposableLinkage (GlobalLinkageKind linkage) |
Whether the definition of this global may be replaced by something non-equivalent at link time. | |
static LLVM_ATTRIBUTE_UNUSED bool | isDiscardableIfUnused (GlobalLinkageKind linkage) |
Whether the definition of this global may be discarded if it is not used in its compilation unit. | |
static LLVM_ATTRIBUTE_UNUSED bool | isWeakForLinker (GlobalLinkageKind linkage) |
Whether the definition of this global may be replaced at link time. | |
static LLVM_ATTRIBUTE_UNUSED bool | isValidLinkage (GlobalLinkageKind gl) |
bool | operator< (cir::MemOrder, cir::MemOrder)=delete |
bool | operator> (cir::MemOrder, cir::MemOrder)=delete |
bool | operator<= (cir::MemOrder, cir::MemOrder)=delete |
bool | operator>= (cir::MemOrder, cir::MemOrder)=delete |
template<typename Int > | |
bool | isValidCIRAtomicOrderingCABI (Int value) |
bool | isValidFundamentalIntWidth (unsigned width) |
bool | isSized (mlir::Type ty) |
Returns true if the type is a CIR sized type. | |
static BackendAction | getBackendActionFromOutputType (CIRGenAction::OutputType Action) |
static std::unique_ptr< llvm::Module > | lowerFromCIRToLLVMIR (mlir::ModuleOp MLIRModule, llvm::LLVMContext &LLVMCtx) |
|
strong |
Enumerator | |
---|---|
None | |
NoSignedWrap | |
NoUnsignedWrap | |
Saturated |
Definition at line 27 of file CIRBaseBuilder.h.
Enumerator | |
---|---|
TEK_Scalar | |
TEK_Complex | |
TEK_Aggregate |
Definition at line 17 of file TypeEvaluationKind.h.
void cir::buildTerminatedBody | ( | mlir::OpBuilder & | builder, |
mlir::Location | loc | ||
) |
|
static |
Definition at line 26 of file CIRGenAction.cpp.
References cir::CIRGenAction::EmitAssembly, cir::CIRGenAction::EmitBC, cir::CIRGenAction::EmitCIR, cir::CIRGenAction::EmitLLVM, and cir::CIRGenAction::EmitObj.
Referenced by cir::CIRGenConsumer::HandleTranslationUnit().
|
static |
Definition at line 24 of file CIROpsEnums.h.
Referenced by isDiscardableIfUnused().
|
static |
Definition at line 57 of file CIROpsEnums.h.
|
static |
Whether the definition of this global may be discarded if it is not used in its compilation unit.
Definition at line 93 of file CIROpsEnums.h.
References isAvailableExternallyLinkage(), isLinkOnceLinkage(), and isLocalLinkage().
Referenced by getCIRGenToUse().
|
static |
Definition at line 21 of file CIROpsEnums.h.
Referenced by isValidDeclarationLinkage(), and isValidLinkage().
|
static |
Definition at line 54 of file CIROpsEnums.h.
Referenced by isValidDeclarationLinkage().
|
static |
Definition at line 45 of file CIROpsEnums.h.
Referenced by isLocalLinkage().
|
static |
Whether the definition of this global may be replaced by something non-equivalent at link time.
For example, if a function has weak linkage then the code defining it may be replaced by different code.
Definition at line 69 of file CIROpsEnums.h.
|
static |
Definition at line 27 of file CIROpsEnums.h.
Referenced by isLinkOnceLinkage().
|
static |
Definition at line 33 of file CIROpsEnums.h.
References isLinkOnceAnyLinkage(), and isLinkOnceODRLinkage().
Referenced by isDiscardableIfUnused(), and isValidLinkage().
|
static |
Definition at line 30 of file CIROpsEnums.h.
Referenced by isLinkOnceLinkage().
|
static |
Definition at line 51 of file CIROpsEnums.h.
References isInternalLinkage(), and isPrivateLinkage().
Referenced by isDiscardableIfUnused(), and isValidLinkage().
|
static |
Definition at line 48 of file CIROpsEnums.h.
Referenced by isLocalLinkage().
bool cir::isSized | ( | mlir::Type | ty | ) |
Returns true if the type is a CIR sized type.
Types are sized if they implement SizedTypeInterface and return true from its method isSized.
Unsized types are those that do not have a size, such as void, or abstract types.
Definition at line 24 of file CIRTypes.cpp.
References cir::MissingFeatures::unsizedTypes().
Referenced by clang::CIRGen::CIRGenTypes::convertType(), and cir::CIRDataLayout::getTypeSizeInBits().
|
inline |
Definition at line 123 of file CIROpsEnums.h.
Referenced by isMemOrderValid().
|
static |
Definition at line 61 of file CIROpsEnums.h.
References isExternalLinkage(), and isExternalWeakLinkage().
Definition at line 465 of file CIRTypes.cpp.
|
static |
Definition at line 111 of file CIROpsEnums.h.
References isExternalLinkage(), isLinkOnceLinkage(), isLocalLinkage(), and isWeakLinkage().
Referenced by getCIRGenToUse().
|
static |
Definition at line 36 of file CIROpsEnums.h.
Referenced by isWeakLinkage().
|
static |
Whether the definition of this global may be replaced at link time.
NB: Using this method outside of the code generators is almost always a mistake: when working at the IR level use isInterposable instead as it knows about ODR semantics.
Definition at line 102 of file CIROpsEnums.h.
Referenced by clang::CIRGen::CIRGenModule::createOrReplaceCXXRuntimeVariable(), and getCIRGenToUse().
|
static |
Definition at line 42 of file CIROpsEnums.h.
References isWeakAnyLinkage(), and isWeakODRLinkage().
Referenced by isValidLinkage().
|
static |
Definition at line 39 of file CIROpsEnums.h.
Referenced by isWeakLinkage().
|
static |
Definition at line 47 of file CIRGenAction.cpp.
References cir::direct::lowerDirectlyFromCIRToLLVMIR().
Referenced by cir::CIRGenConsumer::HandleTranslationUnit().
|
constexpr |
Definition at line 39 of file CIRBaseBuilder.h.
References b.
|
constexpr |
Definition at line 50 of file CIRBaseBuilder.h.
References b.
|
delete |
|
delete |
|
delete |
|
delete |
|
constexpr |
Definition at line 34 of file CIRBaseBuilder.h.
References b.
|
constexpr |
Definition at line 44 of file CIRBaseBuilder.h.
References b.
mlir::LogicalResult cir::runCIRToCIRPasses | ( | mlir::ModuleOp | theModule, |
mlir::MLIRContext & | mlirCtx, | ||
clang::ASTContext & | astCtx, | ||
bool | enableVerifier, | ||
bool | enableCIRSimplify | ||
) |
Definition at line 20 of file CIRPasses.cpp.
References mlir::createCIRCanonicalizePass(), mlir::createCIRSimplifyPass(), and mlir::createLoweringPreparePass().
Referenced by cir::CIRGenConsumer::HandleTranslationUnit().