[llvm] eed51a4 - [Attributor][NFC] Add missing comments

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 21:30:33 PDT 2023


Author: Johannes Doerfert
Date: 2023-07-06T21:30:04-07:00
New Revision: eed51a42a672018e21e6029e05b38834de648bad

URL: https://github.com/llvm/llvm-project/commit/eed51a42a672018e21e6029e05b38834de648bad
DIFF: https://github.com/llvm/llvm-project/commit/eed51a42a672018e21e6029e05b38834de648bad.diff

LOG: [Attributor][NFC] Add missing comments

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/IPO/Attributor.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index a2c4ec4364b5fb..193d1bed454048 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -1872,9 +1872,12 @@ struct Attributor {
                 SmallVectorImpl<Attribute> &Attrs,
                 bool IgnoreSubsumingPositions = false);
 
+  /// Remove all \p AttrKinds attached to \p IRP.
   ChangeStatus removeAttrs(const IRPosition &IRP,
                            const ArrayRef<Attribute::AttrKind> &AttrKinds);
 
+  /// Attach \p DeducedAttrs to \p IRP, if \p ForceReplace is set we do this
+  /// even if the same attribute kind was already present.
   ChangeStatus manifestAttrs(const IRPosition &IRP,
                              const ArrayRef<Attribute> &DeducedAttrs,
                              bool ForceReplace = false);


        


More information about the llvm-commits mailing list