This is an archive of the discontinued LLVM Phabricator instance.

Introduce enum value for previously defined metadata -- make.implicit
ClosedPublic

Authored by chenli on Jul 31 2015, 3:34 PM.

Details

Summary

This patch adds enum value for an existing metadata type -- make.implicit. Using preassigned enum will be helpful to get compile time type checking and avoid string construction and comparison. The patch also changes uses of make.implicit from string metadata to enum metadata. There is no functionality change.

Diff Detail

Event Timeline

chenli updated this revision to Diff 31174.Jul 31 2015, 3:34 PM
chenli retitled this revision from to Introduce enum value for previously defined metadata -- make.implicit .
chenli updated this object.
chenli added a reviewer: reames.
chenli added a subscriber: llvm-commits.
reames requested changes to this revision.Jul 31 2015, 4:08 PM
reames edited edge metadata.

This patch appears incomplete. In particular, look at the analogous code in LLVMContext.cpp.

Also, would you mind talking with Sanjoy and landing a follow up patch with verifier support?

This revision now requires changes to proceed.Jul 31 2015, 4:08 PM
chenli edited edge metadata.

Update w.r.t Philip's comments.

This patch appears incomplete. In particular, look at the analogous code in LLVMContext.cpp.

Also, would you mind talking with Sanjoy and landing a follow up patch with verifier support?

I will talk to Sanjoy about follow up patches both on verifier and llvm doc.

reames accepted this revision.Aug 3 2015, 4:43 PM
reames edited edge metadata.

LGTM

This revision is now accepted and ready to land.Aug 3 2015, 4:43 PM
chenli closed this revision.Aug 3 2015, 9:42 PM