|
clang 24.0.0git
|
Namespaces | |
| namespace | acc |
| namespace | detail |
| namespace | direct |
| namespace | omp |
Classes | |
| class | ABIArgInfo |
| struct | ABIClassifierOptions |
| The target-specific settings a classifier needs beyond what it can read from the module. More... | |
| class | CIRABIClassifier |
| Produces the classification CallConvLowering rewrites a signature from. More... | |
| class | CIRABIClassifierCommon |
| Classifies through the LLVM ABI Lowering Library. More... | |
| class | CIRABIRewriteContext |
| CIR-specific implementation of mlir::abi::ABIRewriteContext. More... | |
| class | CIRBaseBuilderTy |
| class | CIRBasicAliasAnalysis |
| Basic CIR alias analysis based on pointer provenance and distinct allocation sites. More... | |
| class | CIRCXXABI |
| class | CIRDataLayout |
| class | CIRDiagnosticHandler |
| Routes MLIR-side diagnostics emitted during CIR passes, the verifier, and CIR-to-LLVM lowering through the surrounding clang::DiagnosticsEngine. More... | |
| class | CIRGenAction |
| class | CIRGenConsumer |
| class | CIRGenerator |
| class | EmitAssemblyAction |
| class | EmitBCAction |
| class | EmitCIRAction |
| class | EmitCIRBCAction |
| class | EmitLLVMAction |
| class | EmitObjAction |
| class | FenvOpTrait |
| struct | FloatingPointEnvironmentResource |
| The process floating-point environment, including its rounding mode and exception state. More... | |
| struct | GlobalCtorDtorEntry |
| Helper type for lowering global ctor/dtors, that contain all the values needed for transforming the values between IRs. More... | |
| class | LowerModule |
| struct | MissingFeatures |
| class | RecordRewritingTypeConverter |
| A type converter that converts the types nested in pointers, arrays, functions and records. More... | |
| class | RecordType |
| C++ view class that accepts both !cir.struct and !cir.union types. More... | |
| class | TargetLoweringInfo |
Enumerations | |
| enum class | PtrOffsetFlags { None = 0 , InBounds = 1 << 0 , NoUnsignedWrap = 1 << 1 } |
| No-wrap flags of a pointer offset computation: the subset of llvm::GEPNoWrapFlags that cir.get_element carries as its in_bounds and no_unsigned_wrap properties. More... | |
| enum class | CallConvTarget { None , Test , X86_64 , AMDGPU , SPIRV , AArch64 } |
| The ABI target whose calling-convention rules drive CallConvLowering. More... | |
| enum | TypeEvaluationKind { TEK_Scalar , TEK_Complex , TEK_Aggregate } |
Functions | |
| void | setMLIRDataLayout (mlir::ModuleOp mod, const llvm::DataLayout &dl, unsigned bitIntMaxAlign, unsigned maxVectorAlign) |
Translate dl into a DLTI data-layout spec and attach it to mod. | |
| mlir::LogicalResult | runCIRToCIRPasses (mlir::ModuleOp theModule, mlir::MLIRContext &mlirCtx, bool enableVerifier, bool enableIdiomRecognizer, bool enableCIRSimplify, bool enableLibOpt, llvm::StringRef libOptOptions, bool enableCallConvLowering) |
| void | registerCIRAliasAnalyses (mlir::AliasAnalysis &aa, mlir::Operation *op) |
| Register all CIR alias analysis implementations with aa, which answers queries about values within op. | |
| LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE () | |
| void | buildTerminatedBody (mlir::OpBuilder &builder, mlir::Location loc) |
| template<typename Op> | |
| Op::Properties | getDefaultProperties (mlir::MLIRContext *context) |
The properties of Op with every ODS-declared default applied. | |
| RecordLayoutAttr | getRecordLayout (mlir::ModuleOp mod, mlir::StringAttr name) |
| Look up the RecordLayoutAttr for a named record in the module's cir.record_layouts dictionary. | |
| RecordLayoutAttr | tryGetRecordLayout (mlir::ModuleOp mod, mlir::StringAttr name) |
| Same lookup as getRecordLayout, but returns a null attribute instead of asserting when the record has no layout entry. | |
| std::optional< llvm::Triple > | getTripleFromModule (mlir::ModuleOp mod) |
| Attempts to construct an llvm::Triple from a module's cir.triple attribute. | |
| AllocaOp | getUnderlyingAlloca (mlir::Value addr) |
The alloca that defines addr, looking through casts that preserve the underlying storage. | |
| bool | usesRelativeVTables (mlir::ModuleOp mod) |
Whether the C++ vtables of module use the relative layout. | |
| uint64_t | getVTableEntrySize (mlir::ModuleOp mod, const mlir::DataLayout &dataLayout) |
The size in bytes of an entry of a C++ vtable in module. | |
| 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 bool | isCommonLinkage (GlobalLinkageKind linkage) |
| static bool | isAppendingLinkage (GlobalLinkageKind linkage) |
| static bool | isValidDeclarationLinkage (GlobalLinkageKind linkage) |
| static bool | isInterposableLinkage (GlobalLinkageKind linkage) |
| Whether the definition of this global may be replaced by something non-equivalent at link time. | |
| static bool | isDiscardableIfUnused (GlobalLinkageKind linkage) |
| Whether the definition of this global may be discarded if it is not used in its compilation unit. | |
| static bool | isWeakForLinker (GlobalLinkageKind linkage) |
| Whether the definition of this global may be replaced at link time. | |
| static 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 | holdsDataForABI (RecordMemberKind kind) |
| Whether a member of this kind holds data for argument passing. | |
| bool | anyMemberHoldsDataForABI (llvm::ArrayRef< RecordMemberKind > kinds) |
| Whether any member holds data for argument passing on its mark alone. | |
| bool | isNamedBitField (RecordMemberKind kind) |
| Whether a member of this kind is an access unit the source can read a bit-field of. | |
| bool | isSized (mlir::Type ty) |
| Returns true if the type is a CIR sized type. | |
| bool | isBitIntType (mlir::Type ty) |
| Returns true if the type is a cir::IntType representing a _BitInt. | |
| cir::FPTypeInterface | getFloatingPointType (const llvm::fltSemantics &sem, mlir::MLIRContext *ctx) |
| Returns the CIR floating-point type for the given semantics, or a null type if CIR has no type for it (e.g. | |
| cir::LangAddressSpace | toCIRLangAddressSpace (clang::LangAS langAS) |
| bool | isMatchingAddressSpace (mlir::ptr::MemorySpaceAttrInterface cirAS, clang::LangAS as) |
| mlir::ptr::MemorySpaceAttrInterface | toCIRAddressSpaceAttr (mlir::MLIRContext &ctx, clang::LangAS langAS) |
| Convert an AST LangAS to the appropriate CIR address space attribute interface. | |
| mlir::ptr::MemorySpaceAttrInterface | normalizeDefaultAddressSpace (mlir::ptr::MemorySpaceAttrInterface addrSpace) |
| Normalize LangAddressSpace::Default to null (empty attribute). | |
| bool | isSupportedCIRMemorySpaceAttr (mlir::ptr::MemorySpaceAttrInterface memorySpace) |
| bool | memberOwnsBytes (mlir::Type memberTy) |
| Whether a record member occupies bytes of its record. | |
| mlir::Type | memberStorageType (mlir::Type memberTy) |
| The storage a member is stored as: the access unit for a bit-field member, and the member type itself for anything else. | |
| mlir::Block * | replaceCallWithTryCall (cir::CallOp callOp, mlir::Block *unwindDest, mlir::Location loc, mlir::RewriterBase &rewriter) |
Replace a cir::CallOp with a cir::TryCallOp whose unwind destination is unwindDest. | |
| mlir::Block * | replaceThrowWithTryThrow (cir::ThrowOp throwOp, mlir::Block *unwindDest, mlir::Location loc, mlir::RewriterBase &rewriter) |
Replace a cir::ThrowOp with a cir::TryThrowOp whose unwind destination is unwindDest. | |
| void | collectUnreachable (mlir::Operation *parent, llvm::SmallVectorImpl< mlir::Operation * > &ops) |
Collect ops in blocks that are unreachable from their region's entry, appending them to ops. | |
| void | registerAllDialects (mlir::DialectRegistry ®istry) |
| void | registerAllDialects (mlir::MLIRContext &context) |
| mlir::ParseResult | parseOmittedTerminatorRegion (mlir::OpAsmParser &parser, mlir::Region ®ion) |
| void | printOmittedTerminatorRegion (mlir::OpAsmPrinter &printer, cir::ScopeOp &op, mlir::Region ®ion) |
| mlir::OptionalParseResult | parseGlobalMemorySpace (mlir::AsmParser &p, mlir::ptr::MemorySpaceAttrInterface &attr) |
| void | printGlobalMemorySpace (mlir::AsmPrinter &printer, cir::GlobalOp op, mlir::ptr::MemorySpaceAttrInterface attr) |
| mlir::ParseResult | parseAssumeBundle (mlir::OpAsmParser &p, cir::AssumeBundleKindAttr &bundleKindAttr, llvm::SmallVector< mlir::OpAsmParser::UnresolvedOperand, 4 > &bundleArgs, llvm::SmallVector< mlir::Type, 1 > &bundleArgTypes) |
| void | printAssumeBundle (mlir::OpAsmPrinter &p, cir::AssumeOp op, cir::AssumeBundleKindAttr kindAttr, mlir::OperandRange bundleArgs, mlir::TypeRange bundleArgTypes) |
| mlir::ParseResult | parseIndirectBrOpSucessors (mlir::OpAsmParser &parser, mlir::Type &flagType, llvm::SmallVectorImpl< mlir::Block * > &succOperandBlocks, llvm::SmallVectorImpl< llvm::SmallVector< mlir::OpAsmParser::UnresolvedOperand > > &succOperands, llvm::SmallVectorImpl< llvm::SmallVector< mlir::Type > > &succOperandsTypes) |
| void | printIndirectBrOpSucessors (mlir::OpAsmPrinter &p, cir::IndirectBrOp op, mlir::Type flagType, mlir::SuccessorRange succs, mlir::OperandRangeRange succOperands, const mlir::TypeRangeRange &succOperandsTypes) |
| mlir::ParseResult | parseSwitchFlatOpCases (mlir::OpAsmParser &parser, mlir::Type flagType, mlir::ArrayAttr &caseValues, llvm::SmallVectorImpl< mlir::Block * > &caseDestinations, llvm::SmallVectorImpl< llvm::SmallVector< mlir::OpAsmParser::UnresolvedOperand > > &caseOperands, llvm::SmallVectorImpl< llvm::SmallVector< mlir::Type > > &caseOperandTypes) |
| void | printSwitchFlatOpCases (mlir::OpAsmPrinter &p, cir::SwitchFlatOp op, mlir::Type flagType, mlir::ArrayAttr caseValues, mlir::SuccessorRange caseDestinations, mlir::OperandRangeRange caseOperands, const mlir::TypeRangeRange &caseOperandTypes) |
| mlir::ParseResult | parseComdatName (mlir::OpAsmParser &parser, mlir::StringAttr &comdatAttr) |
| void | printComdatName (mlir::OpAsmPrinter &p, cir::GlobalOp op, mlir::StringAttr comdat) |
| mlir::ParseResult | parseGlobalOpTypeAndInitialValue (mlir::OpAsmParser &parser, mlir::TypeAttr &typeAttr, mlir::Attribute &initialValueAttr, mlir::Region &ctorRegion, mlir::Region &dtorRegion) |
| void | printGlobalOpTypeAndInitialValue (mlir::OpAsmPrinter &p, cir::GlobalOp op, mlir::TypeAttr type, mlir::Attribute initAttr, mlir::Region &ctorRegion, mlir::Region &dtorRegion) |
| mlir::ParseResult | parseCopyTypes (mlir::OpAsmParser &parser, mlir::Type &srcType, mlir::Type &dstType) |
| void | printCopyTypes (mlir::OpAsmPrinter &printer, mlir::Operation *, mlir::Type srcType, mlir::Type dstType) |
| mlir::ParseResult | parseTryHandlerRegions (mlir::OpAsmParser &parser, llvm::SmallVectorImpl< std::unique_ptr< mlir::Region > > &handlerRegions, mlir::ArrayAttr &handlerTypes) |
| void | printTryHandlerRegions (mlir::OpAsmPrinter &printer, cir::TryOp op, mlir::MutableArrayRef< mlir::Region > handlerRegions, mlir::ArrayAttr handlerTypes) |
| mlir::ParseResult | parseEhDispatchDestinations (mlir::OpAsmParser &parser, mlir::ArrayAttr &catchTypes, llvm::SmallVectorImpl< mlir::Block * > &catchDestinations, mlir::Block *&defaultDestination, mlir::UnitAttr &defaultIsCatchAll) |
| void | printEhDispatchDestinations (mlir::OpAsmPrinter &p, cir::EhDispatchOp op, mlir::ArrayAttr catchTypes, mlir::SuccessorRange catchDestinations, mlir::Block *defaultDestination, mlir::UnitAttr defaultIsCatchAll) |
| std::unique_ptr< CIRABIClassifier > | createTestTargetABIClassifier (const mlir::DataLayout &dl) |
| The MLIR test ABI target's classifier, whose predictable rules approximate x86_64 SysV. | |
| std::unique_ptr< CIRABIClassifier > | createInjectedABIClassifier (const mlir::DataLayout &dl, llvm::StringRef attrName) |
A classifier that reads each function's classification from the DictionaryAttr named attrName. | |
| std::unique_ptr< CIRABIClassifier > | createX86_64ABIClassifier (const mlir::DataLayout &dl, mlir::ModuleOp modOp, const ABIClassifierOptions &options) |
| The x86_64 System V classifier. | |
| std::unique_ptr< CIRABIClassifier > | createAMDGPUABIClassifier (const mlir::DataLayout &dl, mlir::ModuleOp modOp) |
| The AMDGPU classifier. | |
| std::unique_ptr< CIRABIClassifier > | createSPIRVABIClassifier (const mlir::DataLayout &dl, mlir::ModuleOp modOp) |
| The SPIR-V classifier. | |
| llvm::abi::AArch64ABIOptions | getAArch64ABIOptions (mlir::ModuleOp modOp) |
| The AArch64 classifier, covering AAPCS64 and DarwinPCS. | |
| std::unique_ptr< CIRABIClassifier > | createAArch64ABIClassifier (const mlir::DataLayout &dl, mlir::ModuleOp modOp, const llvm::abi::AArch64ABIOptions &opts) |
The AArch64 classifier, covering AAPCS64 and DarwinPCS, which classifies with opts. | |
| llvm::CallingConv::ID | convertCallingConv (cir::CallingConv cc) |
| Map a CIR calling convention to the llvm::CallingConv the ABI classifier uses. | |
| cir::FuncType | getIndirectCalleeType (cir::CIRCallOpInterface call) |
The signature the indirect call call reaches its callee through. | |
| std::unique_ptr< CIRABIRewriteContext > | createX86_64ABIRewriteContext (mlir::ModuleOp module, const mlir::DataLayout &dl, bool enableNoundefAttrs) |
| A rewrite context that expands cir.va_arg through the x86-64 SysV va_list. | |
| std::unique_ptr< CIRABIRewriteContext > | createAMDGPUABIRewriteContext (mlir::ModuleOp module, const mlir::DataLayout &dl, bool enableNoundefAttrs) |
| A rewrite context that expands cir.va_arg through the AMDGPU pointer va_list. | |
| std::unique_ptr< CIRABIRewriteContext > | createAArch64ABIRewriteContext (mlir::ModuleOp module, const mlir::DataLayout &dl, bool enableNoundefAttrs, bool softFloat) |
| A rewrite context that expands cir.va_arg through the AAPCS64 va_list. | |
| std::unique_ptr< CIRCXXABI > | createItaniumCXXABI (LowerModule &lm) |
| Creates an Itanium-family ABI. | |
| std::unique_ptr< CIRCXXABI > | createMicrosoftCXXABI (LowerModule &lm) |
| Creates a Microsoft-family ABI. | |
| static cir::IntType | getPtrDiffCIRTy (LowerModule &lm) |
| static mlir::Value | lowerDataMemberCast (mlir::Operation *op, mlir::Value loweredSrc, std::int64_t offset, bool isDerivedToBase, mlir::OpBuilder &builder) |
| static mlir::Value | lowerMethodCast (mlir::Operation *op, mlir::Value loweredSrc, std::int64_t offset, bool isDerivedToBase, bool useARMMethodPtrABI, LowerModule &lowerMod, mlir::OpBuilder &builder) |
| static void | buildBadCastCall (mlir::OpBuilder &builder, mlir::Location loc, mlir::FlatSymbolRefAttr badCastFuncRef) |
| static mlir::Value | buildDynamicCastAfterNullCheck (cir::DynamicCastOp op, mlir::OpBuilder &builder) |
| static mlir::Value | buildDynamicCastToVoidAfterNullCheck (cir::DynamicCastOp op, cir::LowerModule &lm, mlir::OpBuilder &builder) |
| static std::unique_ptr< CIRCXXABI > | createCXXABI (LowerModule &lm) |
| std::unique_ptr< LowerModule > | createLowerModule (mlir::ModuleOp module) |
| std::unique_ptr< TargetLoweringInfo > | createTargetLoweringInfo (const llvm::Triple &triple) |
| Select target lowering rules without constructing language or ABI state. | |
| std::unique_ptr< TargetLoweringInfo > | createAMDGPUTargetLoweringInfo () |
| std::unique_ptr< TargetLoweringInfo > | createNVPTXTargetLoweringInfo () |
| std::unique_ptr< TargetLoweringInfo > | createCommonSPIRTargetLoweringInfo () |
| std::unique_ptr< TargetLoweringInfo > | createSPIRVTargetLoweringInfo () |
| static std::optional< mlir::FileLineColLoc > | findFileLineColLoc (mlir::Location loc) |
| static BackendAction | getBackendActionFromOutputType (CIRGenAction::OutputType Action) |
| static std::unique_ptr< llvm::Module > | lowerFromCIRToLLVMIR (mlir::ModuleOp MLIRModule, llvm::LLVMContext &LLVMCtx, bool EnableOpenMP, llvm::StringRef mlirSaveTempsOutFile={}, llvm::vfs::FileSystem *fs=nullptr, bool enableOptimizations=false) |
| static void | printCIRModule (mlir::ModuleOp MLIRModule, raw_ostream &OS) |
| static void | embedSYCLDeviceBinary (CompilerInstance &CI, llvm::Module &M) |
| static mlir::LogicalResult | runCIRPipeline (const FrontendOptions &FEOpts, const CodeGenOptions &CGO, mlir::ModuleOp MlirModule, mlir::MLIRContext &MlirCtx) |
| static void | emitCIRModuleOutput (CIRGenAction::OutputType Action, CompilerInstance &CI, mlir::ModuleOp MlirModule, llvm::LLVMContext &LLVMCtx, SmallVectorImpl<::clang::LinkModule > &LinkModules, BackendDiagnosticConsumer &DiagConsumer, std::unique_ptr< raw_pwrite_stream > OutputStream, llvm::function_ref< void(llvm::Module &)> AddFunctionSourceLocations={}) |
| static CallConvTarget | getCallConvTarget (const llvm::Triple &triple, cir::LoweringOptionsAttr loweringLangOpts) |
| Map a target triple to the ABI target that drives CallConvLowering. | |
| static llvm::abi::X86AVXABILevel | getX86AVXABILevel (llvm::StringRef abi) |
| The AVX level the classifier uses to size a native vector, read from the target ABI name. | |
| static bool | allowsX86TargetAttrAvx (const llvm::Triple &triple, clang::LangOptions::ClangABI compat) |
| Whether __attribute__((target(...))) on a function may raise its AVX ABI level above the command line's. | |
| static llvm::abi::X86ABICompatInfo | getX86ABICompatInfo (const llvm::Triple &triple, clang::LangOptions::ClangABI compat) |
| The x86_64 ABI-compatibility flags, derived from the target and the requested compatibility version. | |
|
strong |
|
strong |
No-wrap flags of a pointer offset computation: the subset of llvm::GEPNoWrapFlags that cir.get_element carries as its in_bounds and no_unsigned_wrap properties.
| Enumerator | |
|---|---|
| None | |
| InBounds | |
| NoUnsignedWrap | |
Definition at line 37 of file CIRBaseBuilder.h.
| Enumerator | |
|---|---|
| TEK_Scalar | |
| TEK_Complex | |
| TEK_Aggregate | |
Definition at line 17 of file TypeEvaluationKind.h.
|
static |
Whether __attribute__((target(...))) on a function may raise its AVX ABI level above the command line's.
A target that opts out, and any ABI older than the rule, stay at the module level.
Definition at line 62 of file CIRPasses.cpp.
Referenced by mlir::createCallConvLoweringPass(), and runCIRToCIRPasses().
|
inline |
Whether any member holds data for argument passing on its mark alone.
Definition at line 53 of file CIRTypes.h.
References holdsDataForABI(), and kind.
Referenced by cir::RecordType::isEmptyForABI().
|
static |
Definition at line 697 of file LowerItaniumCXXABI.cpp.
References cir::MissingFeatures::opFuncCallingConv().
Referenced by buildDynamicCastAfterNullCheck().
|
static |
C++ [expr.dynamic.cast]p9: A failed cast to reference type throws std::bad_cast
Definition at line 711 of file LowerItaniumCXXABI.cpp.
References cir::MissingFeatures::addressSpace(), buildBadCastCall(), and cir::MissingFeatures::opFuncCallingConv().
|
static |
Definition at line 768 of file LowerItaniumCXXABI.cpp.
References cir::MissingFeatures::addressSpace(), clang::Default, clang::TargetInfo::getPointerAlign(), getPtrDiffCIRTy(), cir::LowerModule::getTarget(), and uint64_t.
| void cir::buildTerminatedBody | ( | mlir::OpBuilder & | builder, |
| mlir::Location | loc ) |
| void cir::collectUnreachable | ( | mlir::Operation * | parent, |
| llvm::SmallVectorImpl< mlir::Operation * > & | ops ) |
Collect ops in blocks that are unreachable from their region's entry, appending them to ops.
Used by CIR passes that drive applyPartialConversion and need to feed it operations the conversion driver's dominance-order traversal would otherwise skip.
Definition at line 15 of file CIRTransformUtils.cpp.
Referenced by cir::direct::ConvertCIRToLLVMPass::runOnOperation().
| llvm::CallingConv::ID cir::convertCallingConv | ( | cir::CallingConv | cc | ) |
Map a CIR calling convention to the llvm::CallingConv the ABI classifier uses.
FIXME: Implement proper support for other calling conventions.
Conventions the classifier does not distinguish fall back to C.
Definition at line 796 of file CIRABIClassifier.cpp.
Referenced by cir::CIRABIClassifierCommon::classifyFunction(), and cir::CIRABIClassifierCommon::classifyVariadicCall().
| std::unique_ptr< CIRABIClassifier > cir::createAArch64ABIClassifier | ( | const mlir::DataLayout & | dl, |
| mlir::ModuleOp | modOp, | ||
| const llvm::abi::AArch64ABIOptions & | opts ) |
The AArch64 classifier, covering AAPCS64 and DarwinPCS, which classifies with opts.
Definition at line 118 of file CIRABIClassifierAArch64.cpp.
| std::unique_ptr< CIRABIRewriteContext > cir::createAArch64ABIRewriteContext | ( | mlir::ModuleOp | module, |
| const mlir::DataLayout & | dl, | ||
| bool | enableNoundefAttrs, | ||
| bool | softFloat ) |
A rewrite context that expands cir.va_arg through the AAPCS64 va_list.
When softFloat is set, floating-point and vector values are read from the general register save area.
Definition at line 303 of file CIRABIRewriteContextAArch64.cpp.
| std::unique_ptr< CIRABIClassifier > cir::createAMDGPUABIClassifier | ( | const mlir::DataLayout & | dl, |
| mlir::ModuleOp | modOp ) |
The AMDGPU classifier.
Definition at line 59 of file CIRABIClassifierAMDGPU.cpp.
| std::unique_ptr< CIRABIRewriteContext > cir::createAMDGPUABIRewriteContext | ( | mlir::ModuleOp | module, |
| const mlir::DataLayout & | dl, | ||
| bool | enableNoundefAttrs ) |
A rewrite context that expands cir.va_arg through the AMDGPU pointer va_list.
Definition at line 3047 of file CIRABIRewriteContext.cpp.
| std::unique_ptr< TargetLoweringInfo > cir::createAMDGPUTargetLoweringInfo | ( | ) |
Definition at line 50 of file AMDGPU.cpp.
Referenced by createTargetLoweringInfo().
| std::unique_ptr< TargetLoweringInfo > cir::createCommonSPIRTargetLoweringInfo | ( | ) |
Definition at line 53 of file SPIRV.cpp.
Referenced by createTargetLoweringInfo().
|
static |
Definition at line 26 of file LowerModule.cpp.
References createItaniumCXXABI(), createMicrosoftCXXABI(), and cir::LowerModule::getCXXABIKind().
Referenced by cir::LowerModule::LowerModule().
| std::unique_ptr< CIRABIClassifier > cir::createInjectedABIClassifier | ( | const mlir::DataLayout & | dl, |
| llvm::StringRef | attrName ) |
A classifier that reads each function's classification from the DictionaryAttr named attrName.
Definition at line 1015 of file CIRABIClassifier.cpp.
| std::unique_ptr< CIRCXXABI > cir::createItaniumCXXABI | ( | LowerModule & | lm | ) |
Creates an Itanium-family ABI.
Definition at line 131 of file LowerItaniumCXXABI.cpp.
References cir::MissingFeatures::appleArm64CXXABI(), and cir::LowerModule::getCXXABIKind().
Referenced by createCXXABI().
| std::unique_ptr< LowerModule > cir::createLowerModule | ( | mlir::ModuleOp | module | ) |
Definition at line 62 of file LowerModule.cpp.
References clang::targets::AllocateTarget(), clang::DiagnosticIDs::create(), clang::LangOptions::CXXABI, clang::TargetCXXABI::getKind(), getTripleFromModule(), cir::MissingFeatures::lowerModuleCodeGenOpts(), cir::MissingFeatures::lowerModuleLangOpts(), cir::MissingFeatures::makeTripleAlwaysPresent(), and clang::TargetOptions::Triple.
| std::unique_ptr< CIRCXXABI > cir::createMicrosoftCXXABI | ( | LowerModule & | lm | ) |
Creates a Microsoft-family ABI.
Definition at line 153 of file LowerMicrosoftCXXABI.cpp.
Referenced by createCXXABI().
| std::unique_ptr< TargetLoweringInfo > cir::createNVPTXTargetLoweringInfo | ( | ) |
Definition at line 44 of file NVPTX.cpp.
Referenced by createTargetLoweringInfo().
| std::unique_ptr< CIRABIClassifier > cir::createSPIRVABIClassifier | ( | const mlir::DataLayout & | dl, |
| mlir::ModuleOp | modOp ) |
The SPIR-V classifier.
Definition at line 68 of file CIRABIClassifierSPIRV.cpp.
| std::unique_ptr< TargetLoweringInfo > cir::createSPIRVTargetLoweringInfo | ( | ) |
Definition at line 57 of file SPIRV.cpp.
Referenced by createTargetLoweringInfo().
| std::unique_ptr< TargetLoweringInfo > cir::createTargetLoweringInfo | ( | const llvm::Triple & | triple | ) |
Select target lowering rules without constructing language or ABI state.
Definition at line 29 of file TargetLoweringInfo.cpp.
References createAMDGPUTargetLoweringInfo(), createCommonSPIRTargetLoweringInfo(), createNVPTXTargetLoweringInfo(), createSPIRVTargetLoweringInfo(), and cir::MissingFeatures::targetLoweringInfo().
Referenced by cir::LowerModule::getTargetLoweringInfo().
| std::unique_ptr< CIRABIClassifier > cir::createTestTargetABIClassifier | ( | const mlir::DataLayout & | dl | ) |
The MLIR test ABI target's classifier, whose predictable rules approximate x86_64 SysV.
Definition at line 1010 of file CIRABIClassifier.cpp.
| std::unique_ptr< CIRABIClassifier > cir::createX86_64ABIClassifier | ( | const mlir::DataLayout & | dl, |
| mlir::ModuleOp | modOp, | ||
| const ABIClassifierOptions & | options ) |
The x86_64 System V classifier.
Definition at line 113 of file CIRABIClassifierX86_64.cpp.
| std::unique_ptr< CIRABIRewriteContext > cir::createX86_64ABIRewriteContext | ( | mlir::ModuleOp | module, |
| const mlir::DataLayout & | dl, | ||
| bool | enableNoundefAttrs ) |
A rewrite context that expands cir.va_arg through the x86-64 SysV va_list.
Definition at line 3039 of file CIRABIRewriteContext.cpp.
|
static |
|
static |
Definition at line 130 of file CIRGenAction.cpp.
Referenced by cir::CIRGenAction::ExecuteAction(), and cir::CIRGenConsumer::HandleTranslationUnit().
|
static |
Definition at line 74 of file CIRDiagnosticHandler.cpp.
References findFileLineColLoc().
Referenced by findFileLineColLoc().
| llvm::abi::AArch64ABIOptions cir::getAArch64ABIOptions | ( | mlir::ModuleOp | modOp | ) |
The AArch64 classifier, covering AAPCS64 and DarwinPCS.
The ABI variant, endianness, data model, and source language come from modOp's attributes. The AArch64 options used by the classifier.
Definition at line 25 of file CIRABIClassifierAArch64.cpp.
References clang::TargetCXXABI::getKind().
|
static |
Definition at line 48 of file CIRGenAction.cpp.
References clang::Backend_EmitAssembly, clang::Backend_EmitBC, clang::Backend_EmitLL, clang::Backend_EmitObj, cir::CIRGenAction::EmitAssembly, cir::CIRGenAction::EmitBC, cir::CIRGenAction::EmitCIR, cir::CIRGenAction::EmitCIRBC, cir::CIRGenAction::EmitLLVM, and cir::CIRGenAction::EmitObj.
|
static |
Map a target triple to the ABI target that drives CallConvLowering.
Returns None for targets whose calling convention is not yet implemented.
Definition at line 27 of file CIRPasses.cpp.
References AArch64, AMDGPU, None, SPIRV, and X86_64.
Referenced by runCIRToCIRPasses().
| Op::Properties cir::getDefaultProperties | ( | mlir::MLIRContext * | context | ) |
The properties of Op with every ODS-declared default applied.
The aggregate op builders that take a Properties struct do not apply those defaults themselves, so callers of those builders have to do it here.
Definition at line 85 of file CIRDialect.h.
Referenced by emitNeonCallToOp(), clang::CIRGen::CIRGenFunction::emitOpenACCLoopConstruct(), and cir::direct::lowerFPOp().
| cir::FPTypeInterface cir::getFloatingPointType | ( | const llvm::fltSemantics & | sem, |
| mlir::MLIRContext * | ctx ) |
Returns the CIR floating-point type for the given semantics, or a null type if CIR has no type for it (e.g.
PPCDoubleDouble or a Float8 format). Mirrors llvm::Type::getFloatingPointTy.
Definition at line 48 of file CIRTypes.cpp.
Referenced by abiTypeToCIR().
| cir::FuncType cir::getIndirectCalleeType | ( | cir::CIRCallOpInterface | call | ) |
The signature the indirect call call reaches its callee through.
Definition at line 1809 of file CIRABIRewriteContext.cpp.
Referenced by cir::CIRABIClassifierCommon::classifyIndirectCall(), and cir::CIRABIRewriteContext::rewriteCallSite().
|
static |
Definition at line 170 of file LowerItaniumCXXABI.cpp.
References clang::Default, cir::LowerModule::getMLIRContext(), clang::TargetInfo::getPtrDiffType(), cir::LowerModule::getTarget(), clang::TargetInfo::getTypeWidth(), and clang::TargetInfo::isTypeSigned().
Referenced by buildDynamicCastToVoidAfterNullCheck(), and lowerMethodCast().
| RecordLayoutAttr cir::getRecordLayout | ( | mlir::ModuleOp | mod, |
| mlir::StringAttr | name ) |
Look up the RecordLayoutAttr for a named record in the module's cir.record_layouts dictionary.
Asserts if the entry is missing.
Definition at line 1231 of file CIRAttrs.cpp.
References tryGetRecordLayout().
| std::optional< llvm::Triple > cir::getTripleFromModule | ( | mlir::ModuleOp | mod | ) |
Attempts to construct an llvm::Triple from a module's cir.triple attribute.
Definition at line 492 of file CIRDialect.cpp.
Referenced by createLowerModule(), and runCIRToCIRPasses().
| cir::AllocaOp cir::getUnderlyingAlloca | ( | mlir::Value | addr | ) |
The alloca that defines addr, looking through casts that preserve the underlying storage.
Null when the chain does not end at an alloca.
Use the result only to inspect the allocation, such as its alignment or its allocated type. Addressing has to keep using addr, whose type and address space may differ from the alloca's own result.
Definition at line 591 of file CIRDialect.cpp.
Referenced by clang::CIRGen::Address::getUnderlyingAllocaOp(), and cir::CIRABIRewriteContext::rewriteCallSite().
| uint64_t cir::getVTableEntrySize | ( | mlir::ModuleOp | mod, |
| const mlir::DataLayout & | dataLayout ) |
The size in bytes of an entry of a C++ vtable in module.
Operations address vtable entries by index, so this is the one place that relates the index of an entry to its distance from the address point.
Definition at line 582 of file CIRDialect.cpp.
References usesRelativeVTables().
Referenced by getVTableEntryIndex().
|
static |
The x86_64 ABI-compatibility flags, derived from the target and the requested compatibility version.
Every flag defaults to true in the ABI library, which is not what any target computes: Clang11Compat is false for a modern Linux target, so leaving it at the default classifies a union larger than an eightbyte as though every member spanned its size.
Definition at line 73 of file CIRPasses.cpp.
References cir::MissingFeatures::smallIntABICompatOption().
Referenced by runCIRToCIRPasses().
|
static |
The AVX level the classifier uses to size a native vector, read from the target ABI name.
Definition at line 51 of file CIRPasses.cpp.
Referenced by runCIRToCIRPasses().
|
inline |
Whether a member of this kind holds data for argument passing.
An empty member can hold data all the same, since an access unit of unnamed bit-fields takes that mark and is storage the classifier reads; use RecordType::isEmptyForABI to ask about a whole record.
Definition at line 48 of file CIRTypes.h.
References kind.
Referenced by anyMemberHoldsDataForABI().
|
static |
Definition at line 60 of file CIROpsEnums.h.
|
static |
Definition at line 24 of file CIROpsEnums.h.
Referenced by isDiscardableIfUnused().
| bool cir::isBitIntType | ( | mlir::Type | ty | ) |
Returns true if the type is a cir::IntType representing a _BitInt.
Definition at line 43 of file CIRTypes.cpp.
Referenced by convertTypeForLoadStore(), convertTypeForMemory(), cir::direct::emitFromMemory(), cir::direct::emitToMemory(), cir::direct::getMemoryFallbackAlignment(), cir::direct::prepareTypeConverter(), and cir::direct::GlobalInitAttrRewriter::visitCirAttr().
|
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 95 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 71 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 getThreadLocalWrapperLinkage(), 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 clang::CIRGen::CIRGenVTables::generateConstructionVTable(), getThreadLocalWrapperLinkage(), isDiscardableIfUnused(), and isValidLinkage().
| bool cir::isMatchingAddressSpace | ( | mlir::ptr::MemorySpaceAttrInterface | cirAS, |
| clang::LangAS | as ) |
Definition at line 2042 of file CIRTypes.cpp.
References clang::Default, normalizeDefaultAddressSpace(), and toCIRAddressSpaceAttr().
Referenced by emitBuiltinAlloca().
|
inline |
Whether a member of this kind is an access unit the source can read a bit-field of.
A unit can be narrower than the type a bit-field in it was declared with, so its extent does not answer what the source declared; !cir.bitfield carries that. A true answer does not mean the member is an access unit: a union's base subobject takes this mark when any variant is one, whatever its own storage type came from. A unit of nothing but unnamed bit-fields is empty instead.
Definition at line 65 of file CIRTypes.h.
References kind.
|
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 36 of file CIRTypes.cpp.
References cir::MissingFeatures::unsizedTypes().
Referenced by clang::CIRGen::CIRGenTypes::convertType(), determineNoUndef(), cir::CIRDataLayout::getTypeSizeInBits(), and getTypeSizeInBytes().
| bool cir::isSupportedCIRMemorySpaceAttr | ( | mlir::ptr::MemorySpaceAttrInterface | memorySpace | ) |
Definition at line 1887 of file CIRTypes.cpp.
Definition at line 125 of file CIROpsEnums.h.
References Int.
Referenced by emitAtomicCmpXchgFailureSet(), and clang::CIRGen::CIRGenFunction::emitAtomicExprWithMemOrder().
|
static |
Definition at line 64 of file CIROpsEnums.h.
References isExternalLinkage(), and isExternalWeakLinkage().
Definition at line 1195 of file CIRTypes.cpp.
Referenced by clang::CIRGen::CIRGenBuilderTy::getArrayElement(), and getRecordedIntegerWidth().
|
static |
Definition at line 113 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 104 of file CIROpsEnums.h.
Referenced by clang::CIRGen::CIRGenModule::createOrReplaceCXXRuntimeVariable(), getCIRGenToUse(), and clang::CIRGen::CIRGenModule::mayVTableBeDuplicated().
|
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 getThreadLocalWrapperLinkage(), and isWeakLinkage().
| cir::LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE | ( | ) |
|
static |
Definition at line 448 of file LowerItaniumCXXABI.cpp.
References int64_t.
|
static |
Definition at line 69 of file CIRGenAction.cpp.
|
static |
Definition at line 495 of file LowerItaniumCXXABI.cpp.
References getPtrDiffCIRTy().
|
inline |
Whether a record member occupies bytes of its record.
Every member does except a zero-width bit-field, which contributes neither size nor alignment to the record and is left out of the lowered LLVM struct body.
Definition at line 129 of file CIRTypes.h.
Referenced by collectStoredInitializers(), and cir::direct::prepareTypeConverter().
|
inline |
The storage a member is stored as: the access unit for a bit-field member, and the member type itself for anything else.
Null for a zero-width bit-field, which has no storage.
Definition at line 138 of file CIRTypes.h.
Referenced by memberPointeeType(), and cir::direct::prepareTypeConverter().
| mlir::ptr::MemorySpaceAttrInterface cir::normalizeDefaultAddressSpace | ( | mlir::ptr::MemorySpaceAttrInterface | addrSpace | ) |
Normalize LangAddressSpace::Default to null (empty attribute).
Definition at line 2018 of file CIRTypes.cpp.
Referenced by clang::CIRGen::CIRGenFunction::emitLifetimeEndOp(), clang::CIRGen::CIRGenFunction::emitLifetimeStartOp(), isMatchingAddressSpace(), and clang::CIRGen::CIRGenFunction::maybeCastStackAddressSpace().
|
delete |
|
delete |
|
delete |
|
delete |
| mlir::ParseResult cir::parseAssumeBundle | ( | mlir::OpAsmParser & | p, |
| cir::AssumeBundleKindAttr & | bundleKindAttr, | ||
| llvm::SmallVector< mlir::OpAsmParser::UnresolvedOperand, 4 > & | bundleArgs, | ||
| llvm::SmallVector< mlir::Type, 1 > & | bundleArgTypes ) |
| mlir::ParseResult cir::parseComdatName | ( | mlir::OpAsmParser & | parser, |
| mlir::StringAttr & | comdatAttr ) |
| mlir::ParseResult cir::parseCopyTypes | ( | mlir::OpAsmParser & | parser, |
| mlir::Type & | srcType, | ||
| mlir::Type & | dstType ) |
Definition at line 4220 of file CIRDialect.cpp.
| mlir::ParseResult cir::parseEhDispatchDestinations | ( | mlir::OpAsmParser & | parser, |
| mlir::ArrayAttr & | catchTypes, | ||
| llvm::SmallVectorImpl< mlir::Block * > & | catchDestinations, | ||
| mlir::Block *& | defaultDestination, | ||
| mlir::UnitAttr & | defaultIsCatchAll ) |
| mlir::OptionalParseResult cir::parseGlobalMemorySpace | ( | mlir::AsmParser & | p, |
| mlir::ptr::MemorySpaceAttrInterface & | attr ) |
Definition at line 2004 of file CIRTypes.cpp.
References parseMemorySpace().
| mlir::ParseResult cir::parseGlobalOpTypeAndInitialValue | ( | mlir::OpAsmParser & | parser, |
| mlir::TypeAttr & | typeAttr, | ||
| mlir::Attribute & | initialValueAttr, | ||
| mlir::Region & | ctorRegion, | ||
| mlir::Region & | dtorRegion ) |
| mlir::ParseResult cir::parseIndirectBrOpSucessors | ( | mlir::OpAsmParser & | parser, |
| mlir::Type & | flagType, | ||
| llvm::SmallVectorImpl< mlir::Block * > & | succOperandBlocks, | ||
| llvm::SmallVectorImpl< llvm::SmallVector< mlir::OpAsmParser::UnresolvedOperand > > & | succOperands, | ||
| llvm::SmallVectorImpl< llvm::SmallVector< mlir::Type > > & | succOperandsTypes ) |
| mlir::ParseResult cir::parseOmittedTerminatorRegion | ( | mlir::OpAsmParser & | parser, |
| mlir::Region & | region ) |
Definition at line 544 of file CIRDialect.cpp.
References ensureRegionTerm().
| mlir::ParseResult cir::parseSwitchFlatOpCases | ( | mlir::OpAsmParser & | parser, |
| mlir::Type | flagType, | ||
| mlir::ArrayAttr & | caseValues, | ||
| llvm::SmallVectorImpl< mlir::Block * > & | caseDestinations, | ||
| llvm::SmallVectorImpl< llvm::SmallVector< mlir::OpAsmParser::UnresolvedOperand > > & | caseOperands, | ||
| llvm::SmallVectorImpl< llvm::SmallVector< mlir::Type > > & | caseOperandTypes ) |
| mlir::ParseResult cir::parseTryHandlerRegions | ( | mlir::OpAsmParser & | parser, |
| llvm::SmallVectorImpl< std::unique_ptr< mlir::Region > > & | handlerRegions, | ||
| mlir::ArrayAttr & | handlerTypes ) |
Definition at line 5695 of file CIRDialect.cpp.
| void cir::printAssumeBundle | ( | mlir::OpAsmPrinter & | p, |
| cir::AssumeOp | op, | ||
| cir::AssumeBundleKindAttr | kindAttr, | ||
| mlir::OperandRange | bundleArgs, | ||
| mlir::TypeRange | bundleArgTypes ) |
|
static |
Definition at line 80 of file CIRGenAction.cpp.
| void cir::printComdatName | ( | mlir::OpAsmPrinter & | p, |
| cir::GlobalOp | op, | ||
| mlir::StringAttr | comdat ) |
| void cir::printCopyTypes | ( | mlir::OpAsmPrinter & | printer, |
| mlir::Operation * | , | ||
| mlir::Type | srcType, | ||
| mlir::Type | dstType ) |
Definition at line 4211 of file CIRDialect.cpp.
| void cir::printEhDispatchDestinations | ( | mlir::OpAsmPrinter & | p, |
| cir::EhDispatchOp | op, | ||
| mlir::ArrayAttr | catchTypes, | ||
| mlir::SuccessorRange | catchDestinations, | ||
| mlir::Block * | defaultDestination, | ||
| mlir::UnitAttr | defaultIsCatchAll ) |
| void cir::printGlobalMemorySpace | ( | mlir::AsmPrinter & | printer, |
| cir::GlobalOp | op, | ||
| mlir::ptr::MemorySpaceAttrInterface | attr ) |
Definition at line 2013 of file CIRTypes.cpp.
References printMemorySpace().
| void cir::printGlobalOpTypeAndInitialValue | ( | mlir::OpAsmPrinter & | p, |
| cir::GlobalOp | op, | ||
| mlir::TypeAttr | type, | ||
| mlir::Attribute | initAttr, | ||
| mlir::Region & | ctorRegion, | ||
| mlir::Region & | dtorRegion ) |
| void cir::printIndirectBrOpSucessors | ( | mlir::OpAsmPrinter & | p, |
| cir::IndirectBrOp | op, | ||
| mlir::Type | flagType, | ||
| mlir::SuccessorRange | succs, | ||
| mlir::OperandRangeRange | succOperands, | ||
| const mlir::TypeRangeRange & | succOperandsTypes ) |
| void cir::printOmittedTerminatorRegion | ( | mlir::OpAsmPrinter & | printer, |
| cir::ScopeOp & | op, | ||
| mlir::Region & | region ) |
Definition at line 554 of file CIRDialect.cpp.
References omitRegionTerm().
| void cir::printSwitchFlatOpCases | ( | mlir::OpAsmPrinter & | p, |
| cir::SwitchFlatOp | op, | ||
| mlir::Type | flagType, | ||
| mlir::ArrayAttr | caseValues, | ||
| mlir::SuccessorRange | caseDestinations, | ||
| mlir::OperandRangeRange | caseOperands, | ||
| const mlir::TypeRangeRange & | caseOperandTypes ) |
| void cir::printTryHandlerRegions | ( | mlir::OpAsmPrinter & | printer, |
| cir::TryOp | op, | ||
| mlir::MutableArrayRef< mlir::Region > | handlerRegions, | ||
| mlir::ArrayAttr | handlerTypes ) |
Definition at line 5652 of file CIRDialect.cpp.
| void cir::registerAllDialects | ( | mlir::DialectRegistry & | registry | ) |
Definition at line 25 of file RegisterAllDialects.cpp.
References cir::acc::registerOpenACCExtensions(), and cir::omp::registerOpenMPExtensions().
Referenced by cir::CIRGenAction::ExecuteAction(), cir::CIRGenerator::Initialize(), and registerAllDialects().
| void cir::registerAllDialects | ( | mlir::MLIRContext & | context | ) |
Definition at line 37 of file RegisterAllDialects.cpp.
References registerAllDialects().
| void cir::registerCIRAliasAnalyses | ( | mlir::AliasAnalysis & | aa, |
| mlir::Operation * | op ) |
Register all CIR alias analysis implementations with aa, which answers queries about values within op.
Pass the same operation aa was created for; the implementations use the data layout in effect at op, so values from a different layout scope must not be queried.
Passes that want full CIR alias information should call this rather than adding individual implementations:
mlir::AliasAnalysis aa(funcOp); cir::registerCIRAliasAnalyses(aa, funcOp);
Definition at line 12 of file CIRAliasAnalysis.cpp.
Referenced by cir::CIRABIRewriteContext::CIRABIRewriteContext().
| mlir::Block * cir::replaceCallWithTryCall | ( | cir::CallOp | callOp, |
| mlir::Block * | unwindDest, | ||
| mlir::Location | loc, | ||
| mlir::RewriterBase & | rewriter ) |
Replace a cir::CallOp with a cir::TryCallOp whose unwind destination is unwindDest.
The call's parent block is split immediately after the call; the resulting suffix block becomes the try_call's normal destination and is returned to the caller.
All attributes of the original call other than the callee and operand segment sizes (which TryCallOp::create sets itself) are copied onto the new try_call. Uses of the original call's result, if any, are redirected to the try_call's result, and the original call is erased.
The call must not already be marked nothrow.
Definition at line 48 of file CIRTransformUtils.cpp.
| mlir::Block * cir::replaceThrowWithTryThrow | ( | cir::ThrowOp | throwOp, |
| mlir::Block * | unwindDest, | ||
| mlir::Location | loc, | ||
| mlir::RewriterBase & | rewriter ) |
Replace a cir::ThrowOp with a cir::TryThrowOp whose unwind destination is unwindDest.
The try_throw's normal destination is a new block, inserted right after the throw's block, that holds only a cir.unreachable; it is returned to the caller. The ops that followed the throw in its block (typically a cir.unreachable) are erased.
All attributes of the original throw other than the operand segment sizes (which TryThrowOp::create sets itself) are copied onto the new try_throw, and the original throw is erased.
Definition at line 105 of file CIRTransformUtils.cpp.
|
static |
Definition at line 109 of file CIRGenAction.cpp.
References clang::FrontendOptions::ClangIRCallConvLowering, clang::FrontendOptions::ClangIRDisableCIRVerifier, clang::FrontendOptions::ClangIRDisablePasses, clang::FrontendOptions::ClangIREnableIdiomRecognizer, clang::FrontendOptions::ClangIRLibOptEnabled, clang::FrontendOptions::ClangIRLibOptOptions, and runCIRToCIRPasses().
Referenced by cir::CIRGenAction::ExecuteAction(), and cir::CIRGenConsumer::HandleTranslationUnit().
| mlir::LogicalResult cir::runCIRToCIRPasses | ( | mlir::ModuleOp | theModule, |
| mlir::MLIRContext & | mlirCtx, | ||
| bool | enableVerifier, | ||
| bool | enableIdiomRecognizer, | ||
| bool | enableCIRSimplify, | ||
| bool | enableLibOpt, | ||
| llvm::StringRef | libOptOptions, | ||
| bool | enableCallConvLowering ) |
Definition at line 96 of file CIRPasses.cpp.
References allowsX86TargetAttrAvx(), mlir::createCallConvLoweringPass(), mlir::createCIRCanonicalizePass(), mlir::createCIRSimplifyPass(), mlir::createCXXABILoweringPass(), mlir::createIdiomRecognizerPass(), mlir::createLibOptPass(), mlir::createLoweringPreparePass(), mlir::createTargetLoweringPass(), getCallConvTarget(), getTripleFromModule(), getX86ABICompatInfo(), getX86AVXABILevel(), and None.
Referenced by runCIRPipeline().
| void cir::setMLIRDataLayout | ( | mlir::ModuleOp | mod, |
| const llvm::DataLayout & | dl, | ||
| unsigned | bitIntMaxAlign, | ||
| unsigned | maxVectorAlign ) |
Translate dl into a DLTI data-layout spec and attach it to mod.
On top of the plain mlir::translateDataLayout entries this adds:
bitIntMaxAlign is TargetInfo::getBitIntMaxAlign(), in bits. _BitInt language alignment clamps to that cap.maxVectorAlign is non-zero. That value is TargetInfo::getMaxVectorAlign(), in bits. Vector language alignment clamps to that cap. Zero means the target imposes no cap, and the entry is omitted. Definition at line 24 of file CIRDataLayoutSpec.cpp.
References cir::MissingFeatures::dataLayoutPtrHandlingBasedOnLangAS().
Referenced by cir::CIRGenerator::Initialize().
| mlir::ptr::MemorySpaceAttrInterface cir::toCIRAddressSpaceAttr | ( | mlir::MLIRContext & | ctx, |
| clang::LangAS | langAS ) |
Convert an AST LangAS to the appropriate CIR address space attribute interface.
Definition at line 2028 of file CIRTypes.cpp.
References clang::isTargetAddressSpace(), toCIRLangAddressSpace(), and clang::toTargetAddressSpace().
Referenced by emitAMDGPUWorkGroupSize(), clang::CIRGen::CIRGenFunction::emitFunctionProlog(), clang::CIRGen::TargetCIRGenInfo::getGlobalCIRAddressSpace(), clang::CIRGen::CIRGenTypes::getPointerAddressSpace(), cir::CIRBaseBuilderTy::getPointerTo(), isMatchingAddressSpace(), and clang::CIRGen::CIRGenFunction::maybeCastStackAddressSpace().
| cir::LangAddressSpace cir::toCIRLangAddressSpace | ( | clang::LangAS | langAS | ) |
Definition at line 1893 of file CIRTypes.cpp.
Referenced by toCIRAddressSpaceAttr().
| RecordLayoutAttr cir::tryGetRecordLayout | ( | mlir::ModuleOp | mod, |
| mlir::StringAttr | name ) |
Same lookup as getRecordLayout, but returns a null attribute instead of asserting when the record has no layout entry.
Definition at line 1220 of file CIRAttrs.cpp.
Referenced by getRecordLayout(), cir::CIRDataLayout::getTypeLanguageAlignment(), recordCanPassInRegs(), recordHasFlexibleArrayMember(), recordIsTransparentUnion(), and recordUnadjustedAlign().
| bool cir::usesRelativeVTables | ( | mlir::ModuleOp | mod | ) |
Whether the C++ vtables of module use the relative layout.
Definition at line 576 of file CIRDialect.cpp.
Referenced by getVTableEntrySize().