clang 22.0.0git
CGObjCRuntime.h
Go to the documentation of this file.
1//===----- CGObjCRuntime.h - Interface to ObjC Runtimes ---------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This provides an abstract class for Objective-C code generation. Concrete
10// subclasses of this implement code generation for specific Objective-C
11// runtime libraries.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_CLANG_LIB_CODEGEN_CGOBJCRUNTIME_H
16#define LLVM_CLANG_LIB_CODEGEN_CGOBJCRUNTIME_H
17#include "CGBuilder.h"
18#include "CGCall.h"
19#include "CGCleanup.h"
20#include "CGValue.h"
21#include "clang/AST/DeclObjC.h"
22#include "clang/Basic/IdentifierTable.h" // Selector
23#include "llvm/ADT/UniqueVector.h"
24
25namespace llvm {
26class Constant;
27class Function;
28class Module;
29class StructLayout;
30class StructType;
31class Type;
32class Value;
33} // namespace llvm
34
35namespace clang {
36namespace CodeGen {
37class CGFunctionInfo;
38class CodeGenFunction;
39} // namespace CodeGen
40
41class FieldDecl;
42class ObjCAtTryStmt;
43class ObjCAtThrowStmt;
49class ObjCMessageExpr;
50class ObjCMethodDecl;
52class Selector;
53class ObjCIvarDecl;
55class BlockDeclRefExpr;
56
57namespace CodeGen {
58class CodeGenModule;
59class CGBlockInfo;
60
61// FIXME: Several methods should be pure virtual but aren't to avoid the
62// partially-implemented subclass breaking.
63
64/// Implements runtime-specific code generation functions.
66protected:
69
70 // Utility functions for unified ivar access. These need to
71 // eventually be folded into other places (the structure layout
72 // code).
73
74 /// Compute an offset to the given ivar, suitable for passing to
75 /// EmitValueForIvarAtOffset. Note that the correct handling of
76 /// bit-fields is carefully coordinated by these two, use caution!
77 ///
78 /// The latter overload is suitable for computing the offset of a
79 /// sythesized ivar.
81 const ObjCInterfaceDecl *OID,
82 const ObjCIvarDecl *Ivar);
84 const ObjCImplementationDecl *OID,
85 const ObjCIvarDecl *Ivar);
86
88 const ObjCInterfaceDecl *OID,
89 llvm::Value *BaseValue,
90 const ObjCIvarDecl *Ivar,
91 unsigned CVRQualifiers, llvm::Value *Offset);
92 /// Emits a try / catch statement. This function is intended to be called by
93 /// subclasses, and provides a generic mechanism for generating these, which
94 /// should be usable by all runtimes. The caller must provide the functions
95 /// to call when entering and exiting a \@catch() block, and the function
96 /// used to rethrow exceptions. If the begin and end catch functions are
97 /// NULL, then the function assumes that the EH personality function provides
98 /// the thrown object directly.
100 llvm::FunctionCallee beginCatchFn,
101 llvm::FunctionCallee endCatchFn,
102 llvm::FunctionCallee exceptionRethrowFn);
103
104 void EmitInitOfCatchParam(CodeGenFunction &CGF, llvm::Value *exn,
105 const VarDecl *paramDecl);
106
107 /// Emits an \@synchronize() statement, using the \p syncEnterFn and
108 /// \p syncExitFn arguments as the functions called to lock and unlock
109 /// the object. This function can be called by subclasses that use
110 /// zero-cost exception handling.
112 const ObjCAtSynchronizedStmt &S,
113 llvm::FunctionCallee syncEnterFn,
114 llvm::FunctionCallee syncExitFn);
115
116public:
117 virtual ~CGObjCRuntime();
118
119 std::string getSymbolNameForMethod(const ObjCMethodDecl *method,
120 bool includeCategoryName = true,
121 bool includePrefixByte = true);
122
123 /// Generate the function required to register all Objective-C components in
124 /// this compilation unit with the runtime library.
125 virtual llvm::Function *ModuleInitFunction() = 0;
126
127 /// Get a selector for the specified name and type values.
128 /// The result should have the LLVM type for ASTContext::getObjCSelType().
129 virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel) = 0;
130
131 /// Get the address of a selector for the specified name and type values.
132 /// This is a rarely-used language extension, but sadly it exists.
133 ///
134 /// The result should have the LLVM type for a pointer to
135 /// ASTContext::getObjCSelType().
137
138 /// Get a typed selector.
139 virtual llvm::Value *GetSelector(CodeGenFunction &CGF,
140 const ObjCMethodDecl *Method) = 0;
141
142 /// Get the type constant to catch for the given ObjC pointer type.
143 /// This is used externally to implement catching ObjC types in C++.
144 /// Runtimes which don't support this should add the appropriate
145 /// error to Sema.
146 virtual llvm::Constant *GetEHType(QualType T) = 0;
147
148 virtual CatchTypeInfo getCatchAllTypeInfo() { return {nullptr, 0}; }
149
150 /// Generate a constant string object.
152
153 /// Generate a category. A category contains a list of methods (and
154 /// accompanying metadata) and a list of protocols.
155 virtual void GenerateCategory(const ObjCCategoryImplDecl *OCD) = 0;
156
157 /// Generate a class structure for this class.
158 virtual void GenerateClass(const ObjCImplementationDecl *OID) = 0;
159
160 /// Register an class alias.
161 virtual void RegisterAlias(const ObjCCompatibleAliasDecl *OAD) = 0;
162
163 /// Generate an Objective-C message send operation.
164 ///
165 /// \param Method - The method being called, this may be null if synthesizing
166 /// a property setter or getter.
167 virtual CodeGen::RValue
169 QualType ResultType, Selector Sel, llvm::Value *Receiver,
170 const CallArgList &CallArgs,
171 const ObjCInterfaceDecl *Class = nullptr,
172 const ObjCMethodDecl *Method = nullptr) = 0;
173
174 /// Generate an Objective-C message send operation.
175 ///
176 /// This variant allows for the call to be substituted with an optimized
177 /// variant.
179 CodeGenFunction &CGF, ReturnValueSlot Return, QualType ResultType,
180 Selector Sel, llvm::Value *Receiver, const CallArgList &Args,
181 const ObjCInterfaceDecl *OID, const ObjCMethodDecl *Method,
182 bool isClassMessage);
183
184 /// Generate an Objective-C message send operation to the super
185 /// class initiated in a method for Class and with the given Self
186 /// object.
187 ///
188 /// \param Method - The method being called, this may be null if synthesizing
189 /// a property setter or getter.
192 QualType ResultType, Selector Sel, const ObjCInterfaceDecl *Class,
193 bool isCategoryImpl, llvm::Value *Self, bool IsClassMessage,
194 const CallArgList &CallArgs, const ObjCMethodDecl *Method = nullptr) = 0;
195
196 /// Walk the list of protocol references from a class, category or
197 /// protocol to traverse the DAG formed from it's inheritance hierarchy. Find
198 /// the list of protocols that ends each walk at either a runtime
199 /// protocol or a non-runtime protocol with no parents. For the common case of
200 /// just a list of standard runtime protocols this just returns the same list
201 /// that was passed in.
202 std::vector<const ObjCProtocolDecl *>
205
206 /// Emit the code to return the named protocol as an object, as in a
207 /// \@protocol expression.
208 virtual llvm::Value *GenerateProtocolRef(CodeGenFunction &CGF,
209 const ObjCProtocolDecl *OPD) = 0;
210
211 /// Generate the named protocol. Protocols contain method metadata but no
212 /// implementations.
213 virtual void GenerateProtocol(const ObjCProtocolDecl *OPD) = 0;
214
215 /// GetOrEmitProtocol - Get the protocol object for the given
216 /// declaration, emitting it if necessary. The return value has type
217 /// ProtocolPtrTy.
218 virtual llvm::Constant *GetOrEmitProtocol(const ObjCProtocolDecl *PD) = 0;
219
220 /// Generate a function preamble for a method with the specified
221 /// types.
222
223 // FIXME: Current this just generates the Function definition, but really this
224 // should also be generating the loads of the parameters, as the runtime
225 // should have full control over how parameters are passed.
226 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
227 const ObjCContainerDecl *CD) = 0;
228
229 /// Generates prologue for direct Objective-C Methods.
231 llvm::Function *Fn,
232 const ObjCMethodDecl *OMD,
233 const ObjCContainerDecl *CD) = 0;
234
235 /// Return the runtime function for getting properties.
236 virtual llvm::FunctionCallee GetPropertyGetFunction() = 0;
237
238 /// Return the runtime function for setting properties.
239 virtual llvm::FunctionCallee GetPropertySetFunction() = 0;
240
241 /// Return the runtime function for optimized setting properties.
242 virtual llvm::FunctionCallee GetOptimizedPropertySetFunction(bool atomic,
243 bool copy) = 0;
244
245 // API for atomic copying of qualified aggregates in getter.
246 virtual llvm::FunctionCallee GetGetStructFunction() = 0;
247 // API for atomic copying of qualified aggregates in setter.
248 virtual llvm::FunctionCallee GetSetStructFunction() = 0;
249 /// API for atomic copying of qualified aggregates with non-trivial copy
250 /// assignment (c++) in setter.
251 virtual llvm::FunctionCallee GetCppAtomicObjectSetFunction() = 0;
252 /// API for atomic copying of qualified aggregates with non-trivial copy
253 /// assignment (c++) in getter.
254 virtual llvm::FunctionCallee GetCppAtomicObjectGetFunction() = 0;
255
256 /// GetClass - Return a reference to the class for the given
257 /// interface decl.
258 virtual llvm::Value *GetClass(CodeGenFunction &CGF,
259 const ObjCInterfaceDecl *OID) = 0;
260
262 llvm_unreachable("autoreleasepool unsupported in this ABI");
263 }
264
265 /// EnumerationMutationFunction - Return the function that's called by the
266 /// compiler when a mutation is detected during foreach iteration.
267 virtual llvm::FunctionCallee EnumerationMutationFunction() = 0;
268
270 const ObjCAtSynchronizedStmt &S) = 0;
272 const ObjCAtTryStmt &S) = 0;
274 const ObjCAtThrowStmt &S,
275 bool ClearInsertionPoint = true) = 0;
277 Address AddrWeakObj) = 0;
279 llvm::Value *src, Address dest) = 0;
281 llvm::Value *src, Address dest,
282 bool threadlocal = false) = 0;
284 llvm::Value *src, Address dest,
285 llvm::Value *ivarOffset) = 0;
287 llvm::Value *src, Address dest) = 0;
288
290 QualType ObjectTy, llvm::Value *BaseValue,
291 const ObjCIvarDecl *Ivar,
292 unsigned CVRQualifiers) = 0;
293 virtual llvm::Value *EmitIvarOffset(CodeGen::CodeGenFunction &CGF,
295 const ObjCIvarDecl *Ivar) = 0;
297 Address DestPtr, Address SrcPtr,
298 llvm::Value *Size) = 0;
299 virtual llvm::Constant *
301 const CodeGen::CGBlockInfo &blockInfo) = 0;
302 virtual llvm::Constant *
304 const CodeGen::CGBlockInfo &blockInfo) = 0;
306 const CGBlockInfo &blockInfo) {
307 return {};
308 }
309
310 /// Returns an i8* which points to the byref layout information.
312 QualType T) = 0;
313
316 llvm::PointerType *MessengerType;
317
319 llvm::PointerType *messengerType)
320 : CallInfo(callInfo), MessengerType(messengerType) {}
321 };
322
323 MessageSendInfo getMessageSendInfo(const ObjCMethodDecl *method,
324 QualType resultType,
325 CallArgList &callArgs);
326
328 const ObjCMethodDecl *method, bool isSuper,
329 const ObjCInterfaceDecl *classReceiver,
330 llvm::Value *receiver);
331
332 static bool isWeakLinkedClass(const ObjCInterfaceDecl *cls);
333
334 /// Destroy the callee-destroyed arguments of the given method,
335 /// if it has any. Used for nil-receiver paths in message sends.
336 /// Never does anything if the method does not satisfy
337 /// hasParamDestroyedInCallee().
338 ///
339 /// \param callArgs - just the formal arguments, not including implicit
340 /// arguments such as self and cmd
342 const ObjCMethodDecl *method,
343 const CallArgList &callArgs);
344
345 // FIXME: This probably shouldn't be here, but the code to compute
346 // it is here.
348 const ObjCInterfaceDecl *ID,
349 const ObjCIvarDecl *Ivar);
350};
351
352/// Creates an instance of an Objective-C runtime class.
353// TODO: This should include some way of selecting which runtime to target.
354CGObjCRuntime *CreateGNUObjCRuntime(CodeGenModule &CGM);
356} // namespace CodeGen
357} // namespace clang
358#endif
Defines the clang::IdentifierInfo, clang::IdentifierTable, and clang::Selector interfaces.
Like RawAddress, an abstract representation of an aligned address, but the pointer contained in this ...
Definition Address.h:128
CGBlockInfo - Information to generate a block literal.
Definition CGBlocks.h:157
CGFunctionInfo - Class to encapsulate the information about a function definition.
Implements runtime-specific code generation functions.
virtual llvm::Constant * GetEHType(QualType T)=0
Get the type constant to catch for the given ObjC pointer type.
virtual void EmitObjCIvarAssign(CodeGen::CodeGenFunction &CGF, llvm::Value *src, Address dest, llvm::Value *ivarOffset)=0
virtual llvm::FunctionCallee GetCppAtomicObjectGetFunction()=0
API for atomic copying of qualified aggregates with non-trivial copy assignment (c++) in getter.
virtual void EmitObjCWeakAssign(CodeGen::CodeGenFunction &CGF, llvm::Value *src, Address dest)=0
virtual CatchTypeInfo getCatchAllTypeInfo()
virtual llvm::Constant * BuildByrefLayout(CodeGen::CodeGenModule &CGM, QualType T)=0
Returns an i8* which points to the byref layout information.
void EmitInitOfCatchParam(CodeGenFunction &CGF, llvm::Value *exn, const VarDecl *paramDecl)
bool canMessageReceiverBeNull(CodeGenFunction &CGF, const ObjCMethodDecl *method, bool isSuper, const ObjCInterfaceDecl *classReceiver, llvm::Value *receiver)
virtual void EmitGCMemmoveCollectable(CodeGen::CodeGenFunction &CGF, Address DestPtr, Address SrcPtr, llvm::Value *Size)=0
virtual llvm::FunctionCallee GetPropertySetFunction()=0
Return the runtime function for setting properties.
virtual llvm::FunctionCallee GetCppAtomicObjectSetFunction()=0
API for atomic copying of qualified aggregates with non-trivial copy assignment (c++) in setter.
virtual void EmitTryStmt(CodeGen::CodeGenFunction &CGF, const ObjCAtTryStmt &S)=0
virtual CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF, ReturnValueSlot ReturnSlot, QualType ResultType, Selector Sel, llvm::Value *Receiver, const CallArgList &CallArgs, const ObjCInterfaceDecl *Class=nullptr, const ObjCMethodDecl *Method=nullptr)=0
Generate an Objective-C message send operation.
virtual LValue EmitObjCValueForIvar(CodeGen::CodeGenFunction &CGF, QualType ObjectTy, llvm::Value *BaseValue, const ObjCIvarDecl *Ivar, unsigned CVRQualifiers)=0
virtual llvm::Value * GetSelector(CodeGenFunction &CGF, const ObjCMethodDecl *Method)=0
Get a typed selector.
virtual void RegisterAlias(const ObjCCompatibleAliasDecl *OAD)=0
Register an class alias.
virtual void GenerateCategory(const ObjCCategoryImplDecl *OCD)=0
Generate a category.
static void destroyCalleeDestroyedArguments(CodeGenFunction &CGF, const ObjCMethodDecl *method, const CallArgList &callArgs)
Destroy the callee-destroyed arguments of the given method, if it has any.
CodeGen::RValue GeneratePossiblySpecializedMessageSend(CodeGenFunction &CGF, ReturnValueSlot Return, QualType ResultType, Selector Sel, llvm::Value *Receiver, const CallArgList &Args, const ObjCInterfaceDecl *OID, const ObjCMethodDecl *Method, bool isClassMessage)
Generate an Objective-C message send operation.
Definition CGObjC.cpp:438
virtual void EmitThrowStmt(CodeGen::CodeGenFunction &CGF, const ObjCAtThrowStmt &S, bool ClearInsertionPoint=true)=0
LValue EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, const ObjCInterfaceDecl *OID, llvm::Value *BaseValue, const ObjCIvarDecl *Ivar, unsigned CVRQualifiers, llvm::Value *Offset)
virtual llvm::Value * EmitIvarOffset(CodeGen::CodeGenFunction &CGF, const ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar)=0
uint64_t ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, const ObjCInterfaceDecl *OID, const ObjCIvarDecl *Ivar)
Compute an offset to the given ivar, suitable for passing to EmitValueForIvarAtOffset.
virtual llvm::Function * GenerateMethod(const ObjCMethodDecl *OMD, const ObjCContainerDecl *CD)=0
Generate a function preamble for a method with the specified types.
virtual llvm::Value * GenerateProtocolRef(CodeGenFunction &CGF, const ObjCProtocolDecl *OPD)=0
Emit the code to return the named protocol as an object, as in a @protocol expression.
virtual llvm::Value * EmitObjCWeakRead(CodeGen::CodeGenFunction &CGF, Address AddrWeakObj)=0
virtual llvm::Function * ModuleInitFunction()=0
Generate the function required to register all Objective-C components in this compilation unit with t...
virtual CodeGen::RValue GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF, ReturnValueSlot ReturnSlot, QualType ResultType, Selector Sel, const ObjCInterfaceDecl *Class, bool isCategoryImpl, llvm::Value *Self, bool IsClassMessage, const CallArgList &CallArgs, const ObjCMethodDecl *Method=nullptr)=0
Generate an Objective-C message send operation to the super class initiated in a method for Class and...
std::string getSymbolNameForMethod(const ObjCMethodDecl *method, bool includeCategoryName=true, bool includePrefixByte=true)
virtual void GenerateClass(const ObjCImplementationDecl *OID)=0
Generate a class structure for this class.
virtual std::string getRCBlockLayoutStr(CodeGen::CodeGenModule &CGM, const CGBlockInfo &blockInfo)
virtual llvm::FunctionCallee EnumerationMutationFunction()=0
EnumerationMutationFunction - Return the function that's called by the compiler when a mutation is de...
virtual llvm::Constant * BuildGCBlockLayout(CodeGen::CodeGenModule &CGM, const CodeGen::CGBlockInfo &blockInfo)=0
static bool isWeakLinkedClass(const ObjCInterfaceDecl *cls)
virtual llvm::FunctionCallee GetGetStructFunction()=0
virtual llvm::Constant * GetOrEmitProtocol(const ObjCProtocolDecl *PD)=0
GetOrEmitProtocol - Get the protocol object for the given declaration, emitting it if necessary.
virtual ConstantAddress GenerateConstantString(const StringLiteral *)=0
Generate a constant string object.
virtual llvm::Value * GetClass(CodeGenFunction &CGF, const ObjCInterfaceDecl *OID)=0
GetClass - Return a reference to the class for the given interface decl.
virtual void GenerateProtocol(const ObjCProtocolDecl *OPD)=0
Generate the named protocol.
virtual llvm::Constant * BuildRCBlockLayout(CodeGen::CodeGenModule &CGM, const CodeGen::CGBlockInfo &blockInfo)=0
virtual llvm::FunctionCallee GetOptimizedPropertySetFunction(bool atomic, bool copy)=0
Return the runtime function for optimized setting properties.
void EmitTryCatchStmt(CodeGenFunction &CGF, const ObjCAtTryStmt &S, llvm::FunctionCallee beginCatchFn, llvm::FunctionCallee endCatchFn, llvm::FunctionCallee exceptionRethrowFn)
Emits a try / catch statement.
CodeGen::CodeGenModule & CGM
CGObjCRuntime(CodeGen::CodeGenModule &CGM)
MessageSendInfo getMessageSendInfo(const ObjCMethodDecl *method, QualType resultType, CallArgList &callArgs)
Compute the pointer-to-function type to which a message send should be casted in order to correctly c...
virtual llvm::Value * GetSelector(CodeGenFunction &CGF, Selector Sel)=0
Get a selector for the specified name and type values.
virtual void GenerateDirectMethodPrologue(CodeGenFunction &CGF, llvm::Function *Fn, const ObjCMethodDecl *OMD, const ObjCContainerDecl *CD)=0
Generates prologue for direct Objective-C Methods.
virtual Address GetAddrOfSelector(CodeGenFunction &CGF, Selector Sel)=0
Get the address of a selector for the specified name and type values.
virtual void EmitObjCStrongCastAssign(CodeGen::CodeGenFunction &CGF, llvm::Value *src, Address dest)=0
virtual llvm::Value * EmitNSAutoreleasePoolClassRef(CodeGenFunction &CGF)
virtual void EmitObjCGlobalAssign(CodeGen::CodeGenFunction &CGF, llvm::Value *src, Address dest, bool threadlocal=false)=0
void EmitAtSynchronizedStmt(CodeGenFunction &CGF, const ObjCAtSynchronizedStmt &S, llvm::FunctionCallee syncEnterFn, llvm::FunctionCallee syncExitFn)
Emits an @synchronize() statement, using the syncEnterFn and syncExitFn arguments as the functions ca...
virtual llvm::FunctionCallee GetPropertyGetFunction()=0
Return the runtime function for getting properties.
unsigned ComputeBitfieldBitOffset(CodeGen::CodeGenModule &CGM, const ObjCInterfaceDecl *ID, const ObjCIvarDecl *Ivar)
virtual llvm::FunctionCallee GetSetStructFunction()=0
std::vector< const ObjCProtocolDecl * > GetRuntimeProtocolList(ObjCProtocolDecl::protocol_iterator begin, ObjCProtocolDecl::protocol_iterator end)
Walk the list of protocol references from a class, category or protocol to traverse the DAG formed fr...
Definition CGObjC.cpp:466
virtual void EmitSynchronizedStmt(CodeGen::CodeGenFunction &CGF, const ObjCAtSynchronizedStmt &S)=0
CallArgList - Type for representing both the value and type of arguments in a call.
Definition CGCall.h:274
CodeGenFunction - This class organizes the per-function state that is used while generating LLVM code...
This class organizes the cross-function state that is used while generating LLVM code.
A specialization of Address that requires the address to be an LLVM Constant.
Definition Address.h:296
LValue - This represents an lvalue references.
Definition CGValue.h:183
RValue - This trivial value class is used to represent the result of an expression that is evaluated.
Definition CGValue.h:42
ReturnValueSlot - Contains the address where the return value of a function can be stored,...
Definition CGCall.h:379
Represents a member of a struct/union/class.
Definition Decl.h:3160
Represents Objective-C's @synchronized statement.
Definition StmtObjC.h:303
Represents Objective-C's @throw statement.
Definition StmtObjC.h:358
Represents Objective-C's @try ... @catch ... @finally statement.
Definition StmtObjC.h:167
ObjCCategoryImplDecl - An object of this class encapsulates a category @implementation declaration.
Definition DeclObjC.h:2545
ObjCCompatibleAliasDecl - Represents alias of a class.
Definition DeclObjC.h:2775
ObjCContainerDecl - Represents a container for method declarations.
Definition DeclObjC.h:948
ObjCImplementationDecl - Represents a class definition - this is where method definitions are specifi...
Definition DeclObjC.h:2597
Represents an ObjC class declaration.
Definition DeclObjC.h:1154
ObjCIvarDecl - Represents an ObjC instance variable.
Definition DeclObjC.h:1952
An expression that sends a message to the given Objective-C object or class.
Definition ExprObjC.h:937
ObjCMethodDecl - Represents an instance or class method declaration.
Definition DeclObjC.h:140
Represents an Objective-C protocol declaration.
Definition DeclObjC.h:2084
ObjCProtocolList::iterator protocol_iterator
Definition DeclObjC.h:2158
ObjCStringLiteral, used for Objective-C string literals i.e.
Definition ExprObjC.h:52
A (possibly-)qualified type.
Definition TypeBase.h:937
Smart pointer class that efficiently represents Objective-C method names.
StringLiteral - This represents a string literal expression, e.g.
Definition Expr.h:1799
Represents a variable declaration or definition.
Definition Decl.h:926
CGObjCRuntime * CreateMacObjCRuntime(CodeGenModule &CGM)
CGObjCRuntime * CreateGNUObjCRuntime(CodeGenModule &CGM)
Creates an instance of an Objective-C runtime class.
The JSON file list parser is used to communicate input to InstallAPI.
@ Self
'self' clause, allowed on Compute and Combined Constructs, plus 'update'.
@ Module
Module linkage, which indicates that the entity can be referred to from other translation units withi...
Definition Linkage.h:54
const FunctionProtoType * T
@ Interface
The "__interface" keyword introduces the elaborated-type-specifier.
Definition TypeBase.h:5873
@ Class
The "class" keyword introduces the elaborated-type-specifier.
Definition TypeBase.h:5879
Diagnostic wrappers for TextAPI types for error reporting.
Definition Dominators.h:30
MessageSendInfo(const CGFunctionInfo &callInfo, llvm::PointerType *messengerType)
The MS C++ ABI needs a pointer to RTTI data plus some flags to describe the type of a catch handler,...
Definition CGCleanup.h:39