65 for (
const auto *nd : indirectField->
chain()) {
80 "Must have member initializer!");
81 assert(memberInit->
getInit() &&
"Must have initializer!");
114 "emitMemberInitializer: array of non-record type");
131struct DynamicThisUseChecker
132 : ConstEvaluatedExprVisitor<DynamicThisUseChecker> {
133 using super = ConstEvaluatedExprVisitor<DynamicThisUseChecker>;
135 bool usesThis =
false;
137 DynamicThisUseChecker(
const ASTContext &
c) : super(
c) {}
144 void VisitCXXThisExpr(
const CXXThisExpr *e) { usesThis =
true; }
149 DynamicThisUseChecker checker(
c);
151 return checker.usesThis;
173 return builder.createBaseClassAddr(loc, thisAddr,
convertType(base),
181 assert(
curFuncDecl &&
"loading 'this' without a func declaration?");
202 loc, thisPtr, classDecl, baseClassDecl, isBaseVirtual);
232 bool constructVBases = ctorType !=
Ctor_Base &&
235 if (constructVBases &&
236 !
cgm.getTarget().getCXXABI().hasConstructorVariants()) {
238 "emitCtorPrologue: virtual base without variants");
243 auto allInits = cd->
inits();
246 auto virtualBaseEnd = std::find_if(
248 return !(Init->isBaseInitializer() && Init->isBaseVirtual());
251 auto nonVirtualBaseEnd = std::find_if(virtualBaseEnd, allInits.end(),
253 return !Init->isBaseInitializer();
257 auto virtualBaseInits = llvm::make_range(allInits.begin(), virtualBaseEnd);
258 auto nonVirtualBaseInits =
259 llvm::make_range(virtualBaseEnd, nonVirtualBaseEnd);
260 auto memberInits = llvm::make_range(nonVirtualBaseEnd, allInits.end());
265 if (
cgm.getCodeGenOpts().StrictVTablePointers &&
266 cgm.getCodeGenOpts().OptimizationLevel > 0 &&
271 "emitCtorPrologue: strict vtable pointers for vbase");
278 if (!constructVBases)
280 emitInitializer(virtualBaseInit);
287 assert(!nonVirtualBaseInit->isBaseVirtual());
288 emitInitializer(nonVirtualBaseInit);
303 assert(!member->isBaseInitializer());
304 assert(member->isAnyMemberInitializer() &&
305 "Delegating initializer on non-delegating constructor");
312 CharUnits nonVirtualOffset, mlir::Value virtualOffset,
314 mlir::Type baseValueTy = {},
bool assumeNotNull =
true) {
316 assert(!nonVirtualOffset.
isZero() || virtualOffset !=
nullptr);
319 mlir::Value baseOffset;
320 if (!nonVirtualOffset.
isZero()) {
324 "applyNonVirtualAndVirtualOffset: virtual and non-virtual offset");
327 assert(baseValueTy &&
"expected base type");
330 loc, addr, baseValueTy, nonVirtualOffset.
getQuantity(),
334 baseOffset = virtualOffset;
343 mlir::Value adjusted = cir::PtrStrideOp::create(
344 cgf.
getBuilder(), loc, charPtrType, charPtr, baseOffset);
351 assert(nearestVBase &&
"virtual offset without vbase?");
359 return Address(ptr, alignment);
365 mlir::Value vtableAddressPoint =
366 cgm.getCXXABI().getVTableAddressPointInStructor(
369 if (!vtableAddressPoint)
373 mlir::Value virtualOffset{};
376 mlir::Type baseValueTy;
377 if (
cgm.getCXXABI().isVirtualOffsetNeededForVTableField(*
this, vptr)) {
380 virtualOffset =
cgm.getCXXABI().getVirtualBaseClassOffset(
392 if (!nonVirtualOffset.
isZero() || virtualOffset) {
394 loc, *
this, classAddr, nonVirtualOffset, virtualOffset,
403 auto vtablePtr = cir::VTableGetVPtrOp::create(
404 builder, loc, builder.getPtrToVPtrType(), classAddr.
getPointer());
406 builder.createStore(loc, vtableAddressPoint, vtableField);
418 if (
cgm.getCXXABI().doStructorsInitializeVPtrs(rd))
423 cgm.getCXXABI().initializeHiddenVirtualInheritanceMembers(*
this, rd);
433 false, vtableClass, vbases,
441 bool baseIsNonVirtualPrimaryBase,
447 if (!baseIsNonVirtualPrimaryBase) {
449 VPtr vptr = {base, nearestVBase, offsetFromNearestVBase, vtableClass};
450 vptrs.push_back(vptr);
455 for (
const auto &nextBase : rd->
bases()) {
456 const auto *baseDecl =
458 nextBase.getType()->castAs<RecordType>()->getOriginalDecl())
459 ->getDefinitionOrSelf();
462 if (!baseDecl->isDynamicClass())
467 bool baseDeclIsNonVirtualPrimaryBase;
470 if (nextBase.isVirtual()) {
472 if (!vbases.insert(baseDecl).second)
478 nextBaseDecl = baseDecl;
481 baseDeclIsNonVirtualPrimaryBase =
false;
485 nextBaseDecl = nearestVBase;
487 baseOffsetFromNearestVBase =
489 baseDeclIsNonVirtualPrimaryBase = layout.
getPrimaryBase() == baseDecl;
493 baseOffsetFromNearestVBase,
494 baseDeclIsNonVirtualPrimaryBase, vtableClass, vbases,
500 assert(
curFuncDecl &&
"loading 'this' without a func declaration?");
555 return std::min(actualBaseAlign, expectedTargetAlign);
579 if (actualBaseAlign >= expectedBaseAlign)
580 return expectedTargetAlign;
585 return std::min(actualBaseAlign, expectedTargetAlign);
617 bool zeroInitialize) {
621 newPointerIsChecked, zeroInitialize);
643 if (
auto constantCount = numElements.getDefiningOp<cir::ConstantOp>()) {
644 if (
auto constIntAttr = constantCount.getValueAttr<cir::IntAttr>()) {
646 if (constIntAttr.getUInt() == 0)
651 if (constantCount.use_empty())
652 constantCount.erase();
658 auto arrayTy = mlir::cast<cir::ArrayType>(arrayBase.
getElementType());
659 mlir::Type elementType = arrayTy.getElementType();
660 cir::PointerType ptrToElmType = builder.getPointerTo(elementType);
697 mlir::Value arrayOp =
698 builder.createPtrBitcast(arrayBase.
getPointer(), arrayTy);
699 builder.create<cir::ArrayCtor>(
700 *
currSrcLoc, arrayOp, [&](mlir::OpBuilder &
b, mlir::Location loc) {
701 mlir::BlockArgument arg =
702 b.getInsertionBlock()->addArgument(ptrToElmType, loc);
712 builder.create<cir::YieldOp>(loc);
722 FunctionArgList::const_iterator i = args.begin(), e = args.end();
723 assert(i != e &&
"no parameters to constructor");
732 if (
cgm.getCXXABI().needsVTTParameter(
curGD)) {
733 cgm.errorNYI(loc,
"emitDelegateCXXConstructorCall: VTT parameter");
738 for (; i != e; ++i) {
747 true, thisAddr, delegateArgs, loc);
752 assert(assignOp->isCopyAssignmentOperator() ||
753 assignOp->isMoveAssignmentOperator());
754 const Stmt *rootS = assignOp->getBody();
756 "Body of an implicit assignment operator should be compound stmt.");
768 for (
Stmt *
s : rootCS->body())
770 cgm.errorNYI(
s->getSourceRange(),
771 std::string(
"emitImplicitAssignmentOperatorBody: ") +
772 s->getStmtClassName());
777 const auto *record =
type->castAsCXXRecordDecl();
805 "emitDelegatingCXXConstructorCall: exception");
812 bool forVirtualBase,
bool delegating,
814 cgm.getCXXABI().emitDestructorCall(*
this, dd,
type, forVirtualBase,
815 delegating, thisAddr, thisTy);
820 if (!
cgm.getCXXABI().needsVTTParameter(gd))
826 uint64_t subVTTIndex;
831 }
else if (rd == base) {
834 assert(!
cgm.getCXXABI().needsVTTParameter(
curGD) &&
835 "doing no-op VTT offset in base dtor/ctor?");
836 assert(!forVirtualBase &&
"Can't have same class as virtual base!");
845 assert(subVTTIndex != 0 &&
"Sub-VTT index must be greater than zero!");
849 if (
cgm.getCXXABI().needsVTTParameter(
curGD)) {
852 return builder.createVTTAddrPoint(loc, vtt.getType(), vtt, subVTTIndex);
855 cir::GlobalOp vtt =
cgm.getVTables().getAddrOfVTT(rd);
856 return builder.createVTTAddrPoint(
857 loc, builder.getPointerTo(
cgm.VoidPtrTy),
858 mlir::FlatSymbolRefAttr::get(vtt.getSymNameAttr()), subVTTIndex);
864 llvm::iterator_range<CastExpr::path_const_iterator> path,
866 assert(!path.empty() &&
"Base path should not be empty!");
868 if ((*path.begin())->isVirtual()) {
871 cgm.errorNYI(loc,
"getAddrOfBaseClass: virtual base");
879 cgm.computeNonVirtualBaseClassOffset(derived, path);
882 mlir::Type baseValueTy =
convertType((path.end()[-1])->getType());
889 if (nonVirtualOffset.
isZero()) {
891 return builder.createBaseClassAddr(
getLoc(loc), value, baseValueTy, 0,
898 value = builder.createBaseClassAddr(
getLoc(loc), value, baseValueTy,
911 if (!
cgm.getCodeGenOpts().WholeProgramVTables)
914 if (
cgm.getCodeGenOpts().VirtualFunctionElimination)
924 auto vtablePtr = cir::VTableGetVPtrOp::create(
925 builder, loc, builder.getPtrToVPtrType(), thisAddr.
getPointer());
928 auto vtable = builder.createLoad(loc, vtablePtrAddr);
931 if (
cgm.getCodeGenOpts().OptimizationLevel > 0 &&
932 cgm.getCodeGenOpts().StrictVTablePointers) {
985 bool passPrototypeArgs =
true;
990 "emitCXXConstructorCall: inherited constructor");
996 cgm.getCXXABI().addImplicitConstructorArgs(*
this, d,
type, forVirtualBase,
1004 cir::CIRCallOpInterface
c;
static bool baseInitializerUsesThis(ASTContext &c, const Expr *init)
static Address applyNonVirtualAndVirtualOffset(mlir::Location loc, CIRGenFunction &cgf, Address addr, CharUnits nonVirtualOffset, mlir::Value virtualOffset, const CXXRecordDecl *derivedClass, const CXXRecordDecl *nearestVBase, mlir::Type baseValueTy={}, bool assumeNotNull=true)
static void emitMemberInitializer(CIRGenFunction &cgf, const CXXRecordDecl *classDecl, CXXCtorInitializer *memberInit, const CXXConstructorDecl *constructor, FunctionArgList &args)
static bool isInitializerOfDynamicClass(const CXXCtorInitializer *baseInit)
static void emitLValueForAnyFieldInitialization(CIRGenFunction &cgf, CXXCtorInitializer *memberInit, LValue &lhs)
Defines the clang::Expr interface and subclasses for C++ expressions.
C Language Family Type Representation.
__device__ __2f16 float __ockl_bool s
__device__ __2f16 float c
mlir::Value createBitcast(mlir::Value src, mlir::Type newTy)
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
const ConstantArrayType * getAsConstantArrayType(QualType T) const
const ASTRecordLayout & getASTRecordLayout(const RecordDecl *D) const
Get or compute information about the layout of the specified record (struct/union/class) D,...
QualType getBaseElementType(const ArrayType *VAT) const
Return the innermost element type of an array type.
CanQualType getCanonicalTagType(const TagDecl *TD) const
ASTRecordLayout - This class contains layout information for one RecordDecl, which is a struct/union/...
CharUnits getNonVirtualAlignment() const
getNonVirtualAlignment - Get the non-virtual alignment (in chars) of an object, which is the alignmen...
CharUnits getBaseClassOffset(const CXXRecordDecl *Base) const
getBaseClassOffset - Get the offset, in chars, for the given base class.
CharUnits getVBaseClassOffset(const CXXRecordDecl *VBase) const
getVBaseClassOffset - Get the offset, in chars, for the given base class.
const CXXRecordDecl * getPrimaryBase() const
getPrimaryBase - Get the primary base for this record.
Represents an array type, per C99 6.7.5.2 - Array Declarators.
const CXXRecordDecl * getBase() const
getBase - Returns the base class declaration.
CharUnits getBaseOffset() const
getBaseOffset - Returns the base class offset.
mlir::Value getPointer() const
mlir::Type getElementType() const
Address withElementType(CIRGenBuilderTy &builder, mlir::Type ElemTy) const
Return address with different element type, a bitcast pointer, and the same alignment.
clang::CharUnits getAlignment() const
static AggValueSlot forAddr(Address addr, clang::Qualifiers quals, IsDestructed_t isDestructed, IsAliased_t isAliased, Overlap_t mayOverlap, IsZeroed_t isZeroed=IsNotZeroed)
static AggValueSlot forLValue(const LValue &LV, IsDestructed_t isDestructed, IsAliased_t isAliased, Overlap_t mayOverlap, IsZeroed_t isZeroed=IsNotZeroed)
Address getAddress() const
Address createBaseClassAddr(mlir::Location loc, Address addr, mlir::Type destType, unsigned offset, bool assumeNotNull)
static CIRGenCallee forDirect(mlir::Operation *funcPtr, const CIRGenCalleeInfo &abstractInfo=CIRGenCalleeInfo())
A scope within which we are constructing the fields of an object which might use a CXXDefaultInitExpr...
static bool isConstructorDelegationValid(const clang::CXXConstructorDecl *ctor)
Checks whether the given constructor is a valid subject for the complete-to-base constructor delegati...
void emitCallArgs(CallArgList &args, PrototypeWrapper prototype, llvm::iterator_range< clang::CallExpr::const_arg_iterator > argRange, AbstractCallee callee=AbstractCallee(), unsigned paramsToSkip=0)
mlir::Type convertType(clang::QualType t)
static cir::TypeEvaluationKind getEvaluationKind(clang::QualType type)
Return the cir::TypeEvaluationKind of QualType type.
clang::GlobalDecl curGD
The GlobalDecl for the current function being compiled or the global variable currently being initial...
const clang::LangOptions & getLangOpts() const
mlir::Value loadCXXThis()
Load the value for 'this'.
LValue makeNaturalAlignPointeeAddrLValue(mlir::Value v, clang::QualType t)
Given a value of type T* that may not be to a complete object, construct an l-vlaue withi the natural...
clang::CharUnits cxxThisAlignment
const clang::Decl * curFuncDecl
Address loadCXXThisAddress()
LValue makeNaturalAlignAddrLValue(mlir::Value val, QualType ty)
mlir::Value getVTTParameter(GlobalDecl gd, bool forVirtualBase, bool delegating)
Return the VTT parameter that should be passed to a base constructor/destructor with virtual bases.
mlir::Location getLoc(clang::SourceLocation srcLoc)
Helpers to convert Clang's SourceLocation to a MLIR Location.
void initializeVTablePointers(mlir::Location loc, const clang::CXXRecordDecl *rd)
void initializeVTablePointer(mlir::Location loc, const VPtr &vptr)
Address getAddressOfBaseClass(Address value, const CXXRecordDecl *derived, llvm::iterator_range< CastExpr::path_const_iterator > path, bool nullCheckValue, SourceLocation loc)
void emitDelegateCXXConstructorCall(const clang::CXXConstructorDecl *ctor, clang::CXXCtorType ctorType, const FunctionArgList &args, clang::SourceLocation loc)
void emitBaseInitializer(mlir::Location loc, const CXXRecordDecl *classDecl, CXXCtorInitializer *baseInit)
void emitExprAsInit(const clang::Expr *init, const clang::ValueDecl *d, LValue lvalue, bool capturedByInit=false)
Emit an expression as an initializer for an object (variable, field, etc.) at the given location.
mlir::Value emitArrayLength(const clang::ArrayType *arrayType, QualType &baseType, Address &addr)
Computes the length of an array in elements, as well as the base element type and a properly-typed fi...
void emitNullInitialization(mlir::Location loc, Address destPtr, QualType ty)
VPtrsVector getVTablePointers(const clang::CXXRecordDecl *vtableClass)
AggValueSlot::Overlap_t getOverlapForFieldInit(const FieldDecl *fd)
void emitImplicitAssignmentOperatorBody(FunctionArgList &args)
void emitCtorPrologue(const clang::CXXConstructorDecl *ctor, clang::CXXCtorType ctorType, FunctionArgList &args)
This routine generates necessary code to initialize base classes and non-static data members belongin...
mlir::Value loadCXXVTT()
Load the VTT parameter to base constructors/destructors have virtual bases.
static Destroyer destroyCXXObject
void emitCXXConstructorCall(const clang::CXXConstructorDecl *d, clang::CXXCtorType type, bool forVirtualBase, bool delegating, AggValueSlot thisAVS, const clang::CXXConstructExpr *e)
mlir::Value getVTablePtr(mlir::Location loc, Address thisAddr, const clang::CXXRecordDecl *vtableClass)
Return the Value of the vtable pointer member pointed to by thisAddr.
llvm::SmallPtrSet< const clang::CXXRecordDecl *, 4 > VisitedVirtualBasesSetTy
bool shouldEmitVTableTypeCheckedLoad(const CXXRecordDecl *rd)
Returns whether we should perform a type checked load when loading a virtual function for virtual cal...
RValue emitCall(const CIRGenFunctionInfo &funcInfo, const CIRGenCallee &callee, ReturnValueSlot returnValue, const CallArgList &args, cir::CIRCallOpInterface *callOp, mlir::Location loc)
LValue emitLValueForFieldInitialization(LValue base, const clang::FieldDecl *field, llvm::StringRef fieldName)
Like emitLValueForField, excpet that if the Field is a reference, this will return the address of the...
mlir::Value emitScalarExpr(const clang::Expr *e)
Emit the computation of the specified expression of scalar type.
void emitInitializerForField(clang::FieldDecl *field, LValue lhs, clang::Expr *init)
Address getAddressOfDirectBaseInCompleteClass(mlir::Location loc, Address value, const CXXRecordDecl *derived, const CXXRecordDecl *base, bool baseIsVirtual)
Convert the given pointer to a complete class to the given direct base.
CIRGenBuilderTy & getBuilder()
AggValueSlot::Overlap_t getOverlapForBaseInit(const CXXRecordDecl *rd, const CXXRecordDecl *baseRD, bool isVirtual)
Determine whether a base class initialization may overlap some other object.
void emitComplexExprIntoLValue(const Expr *e, LValue dest, bool isInit)
void emitCXXDestructorCall(const CXXDestructorDecl *dd, CXXDtorType type, bool forVirtualBase, bool delegating, Address thisAddr, QualType thisTy)
llvm::SmallVector< VPtr, 4 > VPtrsVector
void emitCXXAggrConstructorCall(const CXXConstructorDecl *ctor, const clang::ArrayType *arrayType, Address arrayBegin, const CXXConstructExpr *e, bool newPointerIsChecked, bool zeroInitialize=false)
Emit a loop to call a particular constructor for each of several members of an array.
void emitDelegateCallArg(CallArgList &args, const clang::VarDecl *param, clang::SourceLocation loc)
We are performing a delegate call; that is, the current function is delegating to another one.
std::optional< mlir::Location > currSrcLoc
Use to track source locations across nested visitor traversals.
clang::ASTContext & getContext() const
void emitStoreThroughLValue(RValue src, LValue dst, bool isInit=false)
Store the specified rvalue into the specified lvalue, where both are guaranteed to the have the same ...
mlir::LogicalResult emitStmt(const clang::Stmt *s, bool useCurrentScope, llvm::ArrayRef< const Attr * > attrs={})
void emitDelegatingCXXConstructorCall(const CXXConstructorDecl *ctor, const FunctionArgList &args)
void emitAggExpr(const clang::Expr *e, AggValueSlot slot)
DiagnosticBuilder errorNYI(SourceLocation, llvm::StringRef)
Helpers to emit "not yet implemented" error diagnostics.
clang::ASTContext & getASTContext() const
CharUnits getDynamicOffsetAlignment(CharUnits actualBaseAlign, const CXXRecordDecl *baseDecl, CharUnits expectedTargetAlign)
TODO: Add TBAAAccessInfo.
CharUnits getVBaseAlignment(CharUnits derivedAlign, const CXXRecordDecl *derived, const CXXRecordDecl *vbase)
Returns the assumed alignment of a virtual base of a class.
void add(RValue rvalue, clang::QualType type)
Type for representing both the decl and type of parameters to a function.
This trivial value class is used to represent the result of an expression that is evaluated.
static RValue get(mlir::Value v)
Contains the address where the return value of a function can be stored, and whether the address is v...
Represents a call to a C++ constructor.
CXXConstructorDecl * getConstructor() const
Get the constructor that this expression will (ultimately) call.
Represents a C++ constructor within a class.
init_iterator init_begin()
Retrieve an iterator to the first initializer.
bool isDelegatingConstructor() const
Determine whether this constructor is a delegating constructor.
bool isCopyOrMoveConstructor(unsigned &TypeQuals) const
Determine whether this is a copy or move constructor.
InheritedConstructor getInheritedConstructor() const
Get the constructor that this inheriting constructor is based on.
Represents a C++ base or member initializer.
Expr * getInit() const
Get the initializer.
SourceRange getSourceRange() const LLVM_READONLY
Determine the source range covering the entire initializer.
bool isAnyMemberInitializer() const
bool isBaseInitializer() const
Determine whether this initializer is initializing a base class.
bool isIndirectMemberInitializer() const
const Type * getBaseClass() const
If this is a base class initializer, returns the type of the base class.
FieldDecl * getAnyMember() const
IndirectFieldDecl * getIndirectMember() const
bool isBaseVirtual() const
Returns whether the base is virtual or not.
Represents a C++ destructor within a class.
const CXXRecordDecl * getParent() const
Return the parent of this method declaration, which is the class in which this method is defined.
QualType getThisType() const
Return the type of the this pointer.
Represents a C++ struct/union/class.
bool hasTrivialDestructor() const
Determine whether this class has a trivial destructor (C++ [class.dtor]p3)
bool isAbstract() const
Determine whether this class has a pure virtual function.
bool isDynamicClass() const
unsigned getNumVBases() const
Retrieves the number of virtual base classes of this class.
CharUnits - This is an opaque type for sizes expressed in character units.
CharUnits alignmentAtOffset(CharUnits offset) const
Given that this is a non-zero alignment value, what is the alignment at the given offset?
bool isZero() const
isZero - Test whether the quantity equals zero.
QuantityType getQuantity() const
getQuantity - Get the raw integer representation of this quantity.
CharUnits alignmentOfArrayElement(CharUnits elementSize) const
Given that this is the alignment of the first element of an array, return the minimum alignment of an...
static CharUnits Zero()
Zero - Construct a CharUnits quantity of zero.
Represents the canonical version of C arrays with a specified constant size.
SourceLocation getBeginLoc() const LLVM_READONLY
This represents one expression.
SourceLocation getExprLoc() const LLVM_READONLY
getExprLoc - Return the preferred location for the arrow when diagnosing a problem with a generic exp...
Represents a member of a struct/union/class.
bool isTrivial() const
Whether this function is "trivial" in some specialized C++ senses.
bool isDefaulted() const
Whether this function is defaulted.
SourceRange getSourceRange() const override LLVM_READONLY
Source range that this declaration covers.
Represents a prototype with parameter type info, e.g.
bool isVariadic() const
Whether this function prototype is variadic.
GlobalDecl - represents a global declaration.
CXXCtorType getCtorType() const
const Decl * getDecl() const
Represents a field injected from an anonymous union/struct into the parent scope.
ArrayRef< NamedDecl * > chain() const
StringRef getName() const
Get the name of identifier for this declaration as a StringRef.
A (possibly-)qualified type.
DestructionKind isDestructedType() const
Returns a nonzero value if objects of this type require non-trivial work to clean up after.
The collection of all-type qualifiers we support.
Encodes a location in the source.
Stmt - This represents one statement.
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
bool isCompleteDefinition() const
Return true if this decl has its body fully specified.
SourceLocation getBeginLoc() const LLVM_READONLY
The base class of the type hierarchy.
CXXRecordDecl * castAsCXXRecordDecl() const
const T * castAs() const
Member-template castAs<specific type>.
bool isRecordType() const
Represents a variable declaration or definition.
@ Type
The l-value was considered opaque, so the alignment was determined from a type.
const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
const AstTypeMatcher< ArrayType > arrayType
The JSON file list parser is used to communicate input to InstallAPI.
CanQual< Type > CanQualType
Represents a canonical, potentially-qualified type.
CXXCtorType
C++ constructor types.
@ Ctor_Base
Base object ctor.
@ Ctor_Complete
Complete object ctor.
bool isa(CodeGen::Address addr)
CXXDtorType
C++ destructor types.
@ Dtor_Complete
Complete object dtor.
U cast(CodeGen::Address addr)
static bool addressSpace()
static bool aggValueSlotGC()
static bool isMemcpyEquivalentSpecialMember()
static bool hiddenVisibility()
static bool runCleanupsScope()
static bool opCallArgEvaluationOrder()
static bool createInvariantGroup()
static bool isTrivialCtorOrDtor()
static bool assignMemcpyizer()
static bool ctorMemcpyizer()
static bool requiresCleanups()
static bool generateDebugInfo()
static bool incrementProfileCounter()
Similar to AddedStructorArgs, but only notes the number of additional arguments.
const clang::CXXRecordDecl * vtableClass
clang::CharUnits offsetFromNearestVBase
const clang::CXXRecordDecl * nearestVBase
clang::BaseSubobject base
cir::PointerType UInt8PtrTy