[llvm] 5988af9 - [llvm] [NFC] fix comments describing GenericSSAContext
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 5 21:12:30 PST 2023
Author: Sameer Sahasrabuddhe
Date: 2023-03-06T10:41:56+05:30
New Revision: 5988af93773a35bafa53d857566e7ecc0da9e329
URL: https://github.com/llvm/llvm-project/commit/5988af93773a35bafa53d857566e7ecc0da9e329
DIFF: https://github.com/llvm/llvm-project/commit/5988af93773a35bafa53d857566e7ecc0da9e329.diff
LOG: [llvm] [NFC] fix comments describing GenericSSAContext
Added:
Modified:
llvm/include/llvm/ADT/GenericSSAContext.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/GenericSSAContext.h b/llvm/include/llvm/ADT/GenericSSAContext.h
index 409222547d5c3..7c02060636e96 100644
--- a/llvm/include/llvm/ADT/GenericSSAContext.h
+++ b/llvm/include/llvm/ADT/GenericSSAContext.h
@@ -53,20 +53,36 @@ template <typename _FunctionT> class GenericSSAContext {
// indicated by the compiler.
using FunctionT = typename _FunctionT::invalidTemplateInstanceError;
- // Every FunctionT has a unique BlockT marked as its entry.
- //
- // static BlockT* getEntryBlock(FunctionT &F);
-
// Initialize the SSA context with information about the FunctionT being
// processed.
//
// void setFunction(FunctionT &function);
// FunctionT* getFunction() const;
+ // Every FunctionT has a unique BlockT marked as its entry.
+ //
+ // static BlockT* getEntryBlock(FunctionT &F);
+
+ // Methods to examine basic blocks and values
+ //
+ // static void appendBlockDefs(SmallVectorImpl<ValueRefT> &defs,
+ // BlockT &block);
+ // static void appendBlockDefs(SmallVectorImpl<const ValueRefT> &defs,
+ // const BlockT &block);
+
+ // static void appendBlockTerms(SmallVectorImpl<InstT *> &terms,
+ // BlockT &block);
+ // static void appendBlockTerms(SmallVectorImpl<const InstT *> &terms,
+ // const BlockT &block);
+ //
+ // static bool comesBefore(const InstT *lhs, const InstT *rhs);
+ // static bool isConstantOrUndefValuePhi(const InstT &Instr);
+ // const BlockT *getDefBlock(const ValueRefT value) const;
+
// Methods to print various objects.
//
// Printable print(BlockT *block) const;
- // Printable print(InstructionT *inst) const;
+ // Printable print(InstT *inst) const;
// Printable print(ValueRefT value) const;
};
} // namespace llvm
More information about the llvm-commits
mailing list