[PATCH] D19181: Make sure we have a Add/Remove/Has function for various thing that can have attribute.

Amaury SECHET via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 17:33:27 PDT 2016


deadalnix updated this revision to Diff 55139.
deadalnix added a comment.

Revamp the whole thing as per discussion with @whitequark . This is fairly incomplete, but hopefully should allow to discuss where this is going.

The new plan is to Add a LLVMAttributeRef type and add an API to crate these attributes. Then we have a set of functions for functions/parameters/calls to set/get these attributes.

Right now, only the Return functions are made, so that we can discuss the details without having too much code out there. Once design is settled, we can add other attributes.


http://reviews.llvm.org/D19181

Files:
  include/llvm-c/Core.h
  include/llvm-c/Types.h
  include/llvm/IR/Attributes.h
  include/llvm/IR/Function.h
  lib/IR/Core.cpp
  lib/IR/Function.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19181.55139.patch
Type: text/x-patch
Size: 5222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160427/edf638b7/attachment.bin>


More information about the llvm-commits mailing list