Skip to content

Commit bb6ab8b

Browse files
committed
[TargetLowering] Update the description of getShiftAmountTy. NFC
After f4d058f, the LegalTypes argument is no longer used.
1 parent 687531f commit bb6ab8b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,10 @@ class TargetLoweringBase {
400400
virtual MVT getScalarShiftAmountTy(const DataLayout &, EVT) const;
401401

402402
/// Returns the type for the shift amount of a shift opcode. For vectors,
403-
/// returns the input type. For scalars, behavior depends on \p LegalTypes. If
404-
/// \p LegalTypes is true, calls getScalarShiftAmountTy, otherwise uses
405-
/// pointer type. If getScalarShiftAmountTy or pointer type cannot represent
406-
/// all possible shift amounts, returns MVT::i32. In general, \p LegalTypes
407-
/// should be set to true for calls during type legalization and after type
408-
/// legalization has been completed.
403+
/// returns the input type. For scalars, calls getScalarShiftAmountTy.
404+
/// If getScalarShiftAmountTy type cannot represent all possible shift
405+
/// amounts, returns MVT::i32.
406+
/// \p LegalTypes is no longer used and will be removed from the interface.
409407
EVT getShiftAmountTy(EVT LHSTy, const DataLayout &DL,
410408
bool LegalTypes = true) const;
411409

0 commit comments

Comments
 (0)