Skip to content

Commit b760feb

Browse files
committed
[NVPTX] NFC: improve comment of insertMemoryInstructionFence
1 parent ad6465b commit b760feb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ class LLVM_LIBRARY_VISIBILITY NVPTXDAGToDAGISel : public SelectionDAGISel {
116116

117117
static unsigned GetConvertOpcode(MVT DestTy, MVT SrcTy, LoadSDNode *N);
118118

119-
// Returns Memory Order and Scope of a memory instruction, and
120-
// inserts any fence before the instruction that's required to
121-
// implement its memory ordering.
119+
// Returns the Memory Order and Scope that the PTX memory instruction should
120+
// use, and inserts appropriate fence instruction before the memory
121+
// instruction, if needed to implement the instructions memory order. Required
122+
// fences after the instruction need to be handled elsewhere.
122123
std::pair<NVPTX::Ordering, NVPTX::Scope>
123124
insertMemoryInstructionFence(SDLoc DL, SDValue &Chain, MemSDNode *N);
124125
NVPTX::Scope getOperationScope(MemSDNode *N, NVPTX::Ordering O) const;

0 commit comments

Comments
 (0)