Displaying 9 results from an estimated 9 matches for "__block".
Did you mean:
v_block
2013 Jul 22
0
[LLVMdev] Libclang get class name from DeclRefExpr
...s addObject:helpmeh];
}
And the result I need is the type of class of helpmeh, which is
"DFDemoDataModelOne".
So far I have the following code, which outputs:
"[(DFDataModelContainer).dataModels addObject:helpmeh]"
if (cursor.kind == CXCursor_ObjCMessageExpr) {
__block NSString* memberName = nil;
__block NSString* ownerClassName = nil;
__block NSString* methodName = [NSString
stringWithUTF8String:clang_getCString(clang_getCursorDisplayName(cursor))];
clang_visitChildrenWithBlock(cursor, ^enum
CXChildVisitResult(CXCursor cursor, CXCur...
2009 Jul 06
0
[LLVMdev] [llvm-commits] [llvm] r74610 - /llvm/trunk/test/FrontendC++/2009-06-30-ByrefBlock.cpp
...gt; This doesn't work with my llvm-g++ on Linux:;
My apologies.
>> $ llvm-g++ test/FrontendC++/2009-06-30-ByrefBlock.cpp
>> test/FrontendC++/2009-06-30-ByrefBlock.cpp: In function 'void
>> fubar()':
>> test/FrontendC++/2009-06-30-ByrefBlock.cpp:6: error: '__block' was
>> not
>> declared in this scope
>> test/FrontendC++/2009-06-30-ByrefBlock.cpp:6: error: expected `;'
>> before
>> 'void'
>> test/FrontendC++/2009-06-30-ByrefBlock.cpp: In function 'void
>> __fubar_block_invoke_1(void*)':
&g...
2012 Oct 02
1
[LLVMdev] Error prone default memory capturing convention of blocks.
...bligatory, no defaults allowed.
Code will look something like this:
1)
NSString* theLocalVariable = …
...^ {
...
__weak self;
self.blabla = ...
…
[self blabla:(__retain theLocalVariable)];
}
2)
{
self.blabla = … // compile error: missing memory capture semantic qualifier.
....
}
For __block qualifier I propose to leave old behavior (leave the default __retain semantic), because retain cycles with write-to variables are uncommon.
Regards,
Yaroslav.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/2...
2013 May 27
1
Empty buffer on encoder write byte
...Buffers ;
++bufferIndex) {
AudioBuffer audioBuffer = bufferList->mBuffers[bufferIndex];
int frameSize = (samplingRate/1000) * sampleDuration; //
sampling rate is 8000, sample duration is 20ms
size_t count = frameSize*channels / sizeof(opus_int16);
__block opus_int16 *pcmInput = calloc(count,
sizeof(opus_int16));
memcpy(pcmInput, audioBuffer.mData, count * sizeof(opus_int16));
[_encoder encodeWithPCMInput:pcmInput frameSize:frameSize
outputBlock:^(unsigned char *payloadOutput, opus_int32 payloadLength) {
// Se...
2017 Sep 07
2
RFC: Introduce DW_OP_LLVM_memory to describe variables in memory with dbg.value
...ation for these transforms is basically a "chain of
>> loads".
>>
>
> Don't think I've got any mental model of what you mean by this phrase
> ('chain of loads') - could you provide an example or the like?
>
Suppose you have a captured variable with __block shared storage, and then
suppose you compile it with ASan and safestack, and then the safestack
pointer is spilled. To compute the value, the debugger starts from a
register, goes to an offset, and loads a pointer, repeating the process
until it finds the value. As we proceed through codegen, we ef...
2017 Sep 07
2
RFC: Introduce DW_OP_LLVM_memory to describe variables in memory with dbg.value
...>> loads".
>>>>
>>>
>>> Don't think I've got any mental model of what you mean by this phrase
>>> ('chain of loads') - could you provide an example or the like?
>>>
>>
>> Suppose you have a captured variable with __block shared storage, and
>> then suppose you compile it with ASan and safestack, and then the safestack
>> pointer is spilled. To compute the value, the debugger starts from a
>> register, goes to an offset, and loads a pointer, repeating the process
>> until it finds the value....
2015 Apr 08
2
[LLVMdev] __sync_add_and_fetch in objc block for global variable on ARM
...nt, 1); //<< Here count is corrupted in case of number of threads> ~5
printf("count addr %p, value %d\n", &count, count);
fflush(stdout);
});
}
...
dispatch_main();
}
in case of count is local variable in scope of main function and has __block attribute, all is fine.
I'm using
clang version 3.3 (tags/RELEASE_33/final)
Target: armv7l-unknown-linux-gnueabi
Thread model: posix
libBlockRuntime 0.3
libdispatch for linux 1.2
CPU is ARMv7,
in disas I see dmb ish instruction, but I don't know is it enough.
I understand, my clang is out...
2017 Sep 06
4
RFC: Introduce DW_OP_LLVM_memory to describe variables in memory with dbg.value
On Wed, Sep 6, 2017 at 10:01 AM, David Blaikie <dblaikie at gmail.com> wrote:
> On Tue, Sep 5, 2017 at 1:00 PM Reid Kleckner via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> LLVM SSA values obviously do not have an address that we can take and
>> they don’t live in registers, so neither the default memory location model
>> nor DW_OP_regN make sense
2014 Aug 27
6
[LLVMdev] Minimizing -gmlt
...from CXXMethodDecl and not constructing new ones for arbitrary
diff --git test/CodeGenCXX/debug-info-blocks.cpp test/CodeGenCXX/debug-info-blocks.cpp
index 5b20db5..207e2b0 100644
--- test/CodeGenCXX/debug-info-blocks.cpp
+++ test/CodeGenCXX/debug-info-blocks.cpp
@@ -10,5 +10,5 @@ void test() {
__block A a;
}
-// CHECK: [ DW_TAG_subprogram ] [line 10] [local] [def] [__Block_byref_object_copy_]
-// CHECK: [ DW_TAG_subprogram ] [line 10] [local] [def] [__Block_byref_object_dispose_]
+// CHECK: [ DW_TAG_subprogram ] [line 0] [local] [def] [__Block_byref_object_copy_]
+// CHECK: [ DW_TAG_subprogra...