This is an archive of the discontinued LLVM Phabricator instance.

[CallBase] Add hasRetAttr version that takes StringRef.
ClosedPublic

Authored by fhahn on Dec 3 2020, 4:08 AM.

Details

Summary

This makes it slightly easier to deal with custom attributes and
CallBase already provides hasFnAttr versions that support both AttrKind
and StringRef arguments in a similar fashion.

Diff Detail

Event Timeline

fhahn created this revision.Dec 3 2020, 4:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 3 2020, 4:08 AM
fhahn requested review of this revision.Dec 3 2020, 4:08 AM
jdoerfert accepted this revision.Dec 10 2020, 8:24 AM

LGTM, nits.

llvm/include/llvm/IR/InstrTypes.h
1559

Duplicate the docs.

2240

doc please.

This revision is now accepted and ready to land.Dec 10 2020, 8:24 AM
fhahn added a comment.Dec 10 2020, 9:09 AM

LGTM, nits.

Thanks, I'll add the comments.

This revision was automatically updated to reflect the committed changes.