Displaying 7 results from an estimated 7 matches for "inheritableattr".
2013 Jan 09
2
[LLVMdev] attributes
...gt; in llc is?
>>
>> I think that this code has changed recently.
> There's <http://clang.llvm.org/docs/InternalsManual.html#how-to-add-an-attribute>.
> If that's not up to date please let me know.
>
> -- Sean Silva
Thanks.
Not sure I understand the purpose of InheritableAttr .
2013 Jan 09
0
[LLVMdev] attributes
...de has changed recently.
>>
>> There's
>> <http://clang.llvm.org/docs/InternalsManual.html#how-to-add-an-attribute>.
>> If that's not up to date please let me know.
>>
>> -- Sean Silva
>
> Thanks.
>
> Not sure I understand the purpose of InheritableAttr .
InheritableAttr is related to our behavior for testcases like the following:
__attribute((fastcall)) int f(void);
int f(void);
(More generally, it looks like your attributes are very similar to the
fastcall attribute; just do what we do for the fastcall attribute, and
it'll be roughly corr...
2013 Jan 10
1
[LLVMdev] attributes
...ently.
>>> There's
>>> <http://clang.llvm.org/docs/InternalsManual.html#how-to-add-an-attribute>.
>>> If that's not up to date please let me know.
>>>
>>> -- Sean Silva
>> Thanks.
>>
>> Not sure I understand the purpose of InheritableAttr .
> InheritableAttr is related to our behavior for testcases like the following:
>
> __attribute((fastcall)) int f(void);
> int f(void);
>
> (More generally, it looks like your attributes are very similar to the
> fastcall attribute; just do what we do for the fastcall attribut...
2015 Aug 10
2
Clang attributes issue
...ious email: there was some issue with my email system.
Hope you don't have any problems with reading my message now.
Aaron,
Not long ago I met a problem related to clang attributes implementation. I
tried to add a new CXX11 attribute with separated namespace like here:
def FooAligned : InheritableAttr {
let Spellings = [CXX11<"_Foo_attrs", "aligned">];
….
But I was not able to do it because name “aligned” was used in another
well-known attribute. After some research I found that the problem was in
file “AttrParserStringSwitches.inc” generated by TableGen. Its c...
2013 Jan 09
2
[LLVMdev] attributes
I need to add two function attributes to clang that I can subsequently
process in llvm.
void __attribute__((mips16)) foo16 ();
void __attribute__((nomips16)) foo32 ();
int main() {
foo16();
foo32();
}
Does anyone know offhand where this gets added to clang and where the
hook for processing
in llc is?
I think that this code has changed recently.
These options mimick those of gcc.
2013 Jan 09
0
[LLVMdev] attributes
On Wed, Jan 9, 2013 at 4:14 PM, reed kotler <rkotler at mips.com> wrote:
> Does anyone know offhand where this gets added to clang and where the hook
> for processing
> in llc is?
>
> I think that this code has changed recently.
There's <http://clang.llvm.org/docs/InternalsManual.html#how-to-add-an-attribute>.
If that's not up to date please let me know.
--
2014 Nov 03
8
[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack
...i32* @getp()
+declare i32 @dummy(...)
-------------- next part --------------
diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td
index 51837fe..883139a 100644
--- a/include/clang/Basic/Attr.td
+++ b/include/clang/Basic/Attr.td
@@ -1317,6 +1317,13 @@ def X86ForceAlignArgPointer : InheritableAttr, TargetSpecificAttr<TargetX86> {
let Documentation = [Undocumented];
}
+// Attribute to disable SafeStack (or equivalent) instrumentation.
+def NoSafeStack : InheritableAttr {
+ let Spellings = [GCC<"no_safe_stack">];
+ let Subjects = SubjectList<[Function], ErrorDi...