search for: getintvalue

Displaying 6 results from an estimated 6 matches for "getintvalue".

2012 Nov 20
0
[LLVMdev] [RFC] Passing Options to Different Parts of the Compiler Using Attributes
...&A = F.getAttributes(); > > // Target-independent attribute query. > A.hasAttribute(Attributes::NoInline); > > // Target-dependent attribute query. > A.hasAttribute("no-sse"); > > // Retrieving value of a target-independent attribute. > int Alignment = A.getIntValue(Attributes::Alignment); > > // Retrieving value of a target-dependent attribute. > StringRef CPU = A.getStringValue("cpu"); Maybe some set attribute examples too? Overall, I think this is a nice addition! -- Meador Inge CodeSourcery / Mentor Embedded http://www.mentor.com/em...
2012 Nov 13
9
[LLVMdev] [RFC] Passing Options to Different Parts of the Compiler Using Attributes
...ow attributes are queried: Attributes &A = F.getAttributes(); // Target-independent attribute query. A.hasAttribute(Attributes::NoInline); // Target-dependent attribute query. A.hasAttribute("no-sse"); // Retrieving value of a target-independent attribute. int Alignment = A.getIntValue(Attributes::Alignment); // Retrieving value of a target-dependent attribute. StringRef CPU = A.getStringValue("cpu");
2012 Nov 13
0
[LLVMdev] [RFC] Passing Options to Different Parts of the Compiler Using Attributes
...mp;A = F.getAttributes(); > > // Target-independent attribute query. > A.hasAttribute(Attributes::NoInline); > > // Target-dependent attribute query. > A.hasAttribute("no-sse"); > > // Retrieving value of a target-independent attribute. > int Alignment = A.getIntValue(Attributes::Alignment); > > // Retrieving value of a target-dependent attribute. > StringRef CPU = A.getStringValue("cpu"); > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.e...
2012 Nov 21
1
[LLVMdev] [RFC] Passing Options to Different Parts of the Compiler Using Attributes
...> >> // Target-independent attribute query. >> A.hasAttribute(Attributes::NoInline); >> >> // Target-dependent attribute query. >> A.hasAttribute("no-sse"); >> >> // Retrieving value of a target-independent attribute. >> int Alignment = A.getIntValue(Attributes::Alignment); >> >> // Retrieving value of a target-dependent attribute. >> StringRef CPU = A.getStringValue("cpu"); > > Maybe some set attribute examples too? > > > Overall, I think this is a nice addition! > > -- > Meador Inge > Cod...
2012 Nov 26
3
[LLVMdev] [RFC] Passing Options to Different Parts of the Compiler Using Attributes
...; >> // Target-independent attribute query. >> A.hasAttribute(Attributes::NoInline); >> >> // Target-dependent attribute query. >> A.hasAttribute("no-sse"); >> >> // Retrieving value of a target-independent attribute. >> int Alignment = A.getIntValue(Attributes::Alignment); >> >> // Retrieving value of a target-dependent attribute. >> StringRef CPU = A.getStringValue("cpu"); > > Maybe some set attribute examples too? > That would be done through the current AttrBuilder class: AttrBuilder B; // Add a t...
2013 Jan 29
4
[LLVMdev] [RFC] Attributes Rewrite (Final)
...example of how attributes are queried: Attributes A = F.getAttributes(); // Target-independent attribute query. A.hasAttribute(Attributes::NoInline); // Target-dependent attribute query. A.hasAttribute("no-sse"); // Retrieving value of a target-independent attribute. int Alignment = A.getIntValue(Attributes::Alignment); // Retrieving value of a target-dependent attribute. StringRef CPU = A.getStringValue("cpu");