Home
last modified time | relevance | path

Searched refs:BlockTy (Results 1 – 24 of 24) sorted by relevance

/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Ddisable-tail-call-escaping-block.m23 typedef void (^BlockTy)(void);
24 typedef void (*NoEscapeFnTy)(__attribute__((noescape)) BlockTy); typedef
26 void callee0(__attribute__((noescape)) BlockTy);
27 void callee1(BlockTy);
31 -(void)m0:(__attribute__((noescape)) BlockTy)p;
32 -(void)m1:(BlockTy)p; argument
36 -(void)m0:(__attribute__((noescape)) BlockTy)p {}
37 -(void)m1:(BlockTy)p {} argument
43 BlockTy b0 = ^{ (void)a; }; // disable tail-call optimization.
48 BlockTy b1 = ^{ (void)a; }; // disable tail-call optimization.
H A Dblock-desc-str.m14 typedef void (^BlockTy)(void);
17 BlockTy b = ^{ (void)a; };
H A Dnoescape.m4 typedef void (^BlockTy)(void);
11 void escapingFunc0(BlockTy);
12 void noescapeFunc0(id, __attribute__((noescape)) BlockTy);
33 void test0(BlockTy b) {
H A Dweak-in-c-struct.m6 typedef void (^BlockTy)(void);
132 BlockTy b = ^{ (void)t; };
H A Dstrong-in-c-struct.m9 typedef void (^BlockTy)(void);
42 BlockTy f0;
290 BlockTy b = ^{ (void)t; };
405 BlockTy b = ^{ (void)t; };
604 BlockTy b = ^(void){ (void)t; };
/llvm-project-15.0.7/clang/test/CodeGen/
H A Ddebug-info-block-expr.c4 typedef void (^BlockTy)(void); typedef
5 void escapeFunc(BlockTy);
6 typedef void (^BlockTy)(void); typedef
7 void noEscapeFunc(__attribute__((noescape)) BlockTy);
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dnoescape.mm4 typedef void (^BlockTy)(); typedef
11 void escapingFunc0(BlockTy);
12 void noescapeFunc0(id, __attribute__((noescape)) BlockTy);
13 void noescapeFunc1(id, [[clang::noescape]] BlockTy);
48 - (void)noescapeLValRefParam:(const BlockTy &)__attribute__((noescape))p;
49 - (void)noescapeRValRefParam:(BlockTy &&)__attribute__((noescape))p;
54 - (void)noescapeLValRefParam:(const BlockTy &)__attribute__((noescape))p {
56 - (void)noescapeRValRefParam:(BlockTy &&)__attribute__((noescape))p {
192 void noescapeLValRefParam(__attribute__((noescape)) const BlockTy &);
197 void noescapeRValRefParam(__attribute__((noescape)) BlockTy &&);
H A Dwarn-implicit-self-in-block.mm4 typedef void (^BlockTy)(); typedef
6 void noescapeFunc(__attribute__((noescape)) BlockTy);
7 void escapeFunc(BlockTy);
/llvm-project-15.0.7/clang/test/PCH/
H A Dno-escaping-block-tail-calls.h1 typedef int (^BlockTy)(void); typedef
9 void func(BlockTy __attribute__((noescape)));
H A Darc-blocks.mm8 typedef void (^BlockTy)();
13 BlockTy b0 = ^{ foo1(a); };
18 BlockTy b0;
/llvm-project-15.0.7/clang/test/CodeGenObjCXX/
H A Darc-blocks.mm209 typedef void (^BlockTy)(); typedef
217 BlockTy b0 = ^{ foo1(a); };
241 BlockTy b0 = ^{ foo1(a); };
250 BlockTy b0;
260 static BlockTy b0;
268 BlockTy b0;
286 BlockTy b0 = ^{ foo1(a); };
288 BlockTy b1;
307 ((BlockTy)b0)();
320 BlockTy b0 = ^{ foo1(a); };
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenCLRuntime.cpp151 llvm::Value *Block, llvm::Type *BlockTy) { in recordBlockInfo() argument
158 EnqueuedBlockMap[E].BlockTy = BlockTy; in recordBlockInfo()
183 CGF, EnqueuedBlockMap[Block].InvokeFunc, EnqueuedBlockMap[Block].BlockTy); in emitOpenCLEnqueuedBlock()
H A DCGOpenCLRuntime.h49 llvm::Type *BlockTy; /// Type of the block argument. member
97 llvm::Value *Block, llvm::Type *BlockTy);
H A DTargetInfo.h332 llvm::Type *BlockTy) const;
H A DTargetInfo.cpp9334 llvm::Type *BlockTy) const override;
11777 llvm::Type *BlockTy) const { in createEnqueuedBlockKernel()
11807 llvm::Type *BlockTy) const { in createEnqueuedBlockKernel()
11820 ArgTys.push_back(BlockTy); in createEnqueuedBlockKernel()
11845 const auto BlockAlign = CGF.CGM.getDataLayout().getPrefTypeAlign(BlockTy); in createEnqueuedBlockKernel()
11846 auto *BlockPtr = Builder.CreateAlloca(BlockTy, nullptr); in createEnqueuedBlockKernel()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dnoescape.cpp78 typedef void (^BlockTy)(void); typedef
80 void noescapefunc(__attribute__((noescape)) BlockTy);
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dstrong-in-c-struct.m34 typedef void (^BlockTy)(void);
35 void func(BlockTy);
H A Dnon-trivial-c-union.m62 typedef void (^BlockTy)(void);
63 void escapingFunc(BlockTy);
64 void noescapingFunc(__attribute__((noescape)) BlockTy);
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DHotColdSplitting.cpp398 using BlockTy = std::pair<BasicBlock *, unsigned>; typedef
409 SmallVector<BlockTy, 0> Blocks = {};
558 auto RegionStartIt = remove_if(Blocks, [&](const BlockTy &Block) { in takeSingleEntrySubRegion()
646 bool RegionsOverlap = any_of(Region.blocks(), [&](const BlockTy &Block) { in outlineColdRegions()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlan.h2442 template <typename BlockTy> class VPBlockRecursiveTraversalWrapper {
2443 BlockTy Entry;
2446 VPBlockRecursiveTraversalWrapper(BlockTy Entry) : Entry(Entry) {}
2447 BlockTy getEntry() { return Entry; }
2903 template <typename BlockTy, typename T>
2907 typename std::conditional<std::is_const<BlockTy>::value,
2915 Mapped, [](BaseTy &Block) { return isa<BlockTy>(&Block); });
2916 return map_range(Filter, [](BaseTy &Block) -> BlockTy * {
2917 return cast<BlockTy>(&Block);
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExpr.cpp16345 QualType BlockTy; in ActOnBlockStmtExpr() local
16358 BlockTy = Context.getFunctionType(RetTy, None, EPI); in ActOnBlockStmtExpr()
16364 BlockTy = BSI->FunctionType; in ActOnBlockStmtExpr()
16372 BlockTy = Context.getFunctionType(RetTy, FPT->getParamTypes(), EPI); in ActOnBlockStmtExpr()
16379 BlockTy = Context.getFunctionType(RetTy, None, EPI); in ActOnBlockStmtExpr()
16383 BlockTy = Context.getBlockPointerType(BlockTy); in ActOnBlockStmtExpr()
16478 PoppedFunctionScopePtr ScopeRAII = PopFunctionScopeInfo(&WP, BD, BlockTy); in ActOnBlockStmtExpr()
16480 BlockExpr *Result = new (Context) BlockExpr(BD, BlockTy); in ActOnBlockStmtExpr()
H A DSemaDeclAttr.cpp6716 QualType BlockTy = in handleSwiftAsyncAttr() local
6718 if (!BlockTy->castAs<FunctionType>()->getReturnType()->isVoidType()) { in handleSwiftAsyncAttr()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttrDocs.td245 typedef void (^BlockTy)();
246 BlockTy g0, g1;
248 void nonescapingFunc(__attribute__((noescape)) BlockTy block) {
252 void escapingFunc(__attribute__((noescape)) BlockTy block) {
/llvm-project-15.0.7/clang/lib/AST/
H A DASTContext.cpp7540 QualType BlockTy = in getObjCEncodingForBlock() local
7542 QualType BlockReturnTy = BlockTy->castAs<FunctionType>()->getReturnType(); in getObjCEncodingForBlock()