search for: __builtin_patchable_branch

Displaying 3 results from an estimated 3 matches for "__builtin_patchable_branch".

2017 Apr 04
3
[inline-asm][asm-goto] Supporting "asm goto" in inline assembly
...in using inline assembly in a way that's ultimately significantly harder for the compiler to support than a language feature, and now it's your problem." I agree with Chandler that we should just design and implement the language feature. > > I would recommend: > > if (__builtin_patchable_branch("section name")) { > trace(); > } > > ==> > > %0 = call i1 @llvm.patchable_branch(i8* @sectionNameString) > br %0, ... > > where @llvm.patchable_branch has the semantics of appending whatever patching information is necessary to the given section...
2018 Feb 12
0
[inline-asm][asm-goto] Supporting "asm goto" in inline assembly
...ately significantly harder for > > the compiler to support than a language feature, and now it's your > > problem."  I agree with Chandler that we should just design and > > implement the language feature. > > > > I would recommend: > > > >   if (__builtin_patchable_branch("section name")) { > >     trace(); > >   } > > > > ==> > > > >   %0 = call i1 @llvm.patchable_branch(i8* @sectionNameString) > >   br %0, ... > > > > where @llvm.patchable_branch has the semantics of appending > > whatever...
2017 Apr 04
4
[inline-asm][asm-goto] Supporting "asm goto" in inline assembly
My two cents: - I think inline assembly should work even if the compiler cannot parse the contents. This would rule out msvc inline assembly (or alternatively put all the parsing and interpretation burden on the frontend), but would work with gcc asm goto which specifies possible targets separately. - Supporting control flow in inline assembly by allowing jumps out of an assembly block seems