Home
last modified time | relevance | path

Searched refs:TrailingZeros (Results 1 – 9 of 9) sorted by relevance

/openbsd/src/gnu/llvm/llvm/lib/Target/RISCV/
DRISCVInstrInfoZb.td251 unsigned TrailingZeros = countTrailingZeros(Imm);
252 return TrailingZeros > 0 && TrailingZeros < 32 &&
253 Imm == UINT64_C(0xFFFFFFFF) << TrailingZeros;
254 }], TrailingZeros>;
577 (BSETI (BSETI GPR:$r, (TrailingZeros BSETINVTwoBitsMask:$i)),
580 (BINVI (BINVI GPR:$r, (TrailingZeros BSETINVTwoBitsMask:$i)),
722 (TrailingZeros C3LeftShift:$i))>;
725 (TrailingZeros C5LeftShift:$i))>;
728 (TrailingZeros C9LeftShift:$i))>;
805 (SH1ADD (SLLI_UW GPR:$r, (TrailingZeros C3LeftShiftUW:$i)),
[all …]
DRISCVISelDAGToDAG.cpp731 unsigned TrailingZeros = countTrailingZeros(Mask); in Select() local
732 if (TrailingZeros > 0 && LeadingZeros == 32) { in Select()
735 CurDAG->getTargetConstant(TrailingZeros, DL, VT)); in Select()
738 CurDAG->getTargetConstant(TrailingZeros + ShAmt, DL, VT)); in Select()
760 unsigned TrailingZeros = countTrailingZeros(Mask); in Select() local
761 if (LeadingZeros == 32 && TrailingZeros > ShAmt) { in Select()
764 CurDAG->getTargetConstant(TrailingZeros, DL, VT)); in Select()
767 CurDAG->getTargetConstant(TrailingZeros - ShAmt, DL, VT)); in Select()
DRISCVInstrInfo.td448 def TrailingZeros : SDNodeXForm<imm, [{
466 }], TrailingZeros>;
485 }], TrailingZeros>;
/openbsd/src/gnu/llvm/llvm/lib/Target/RISCV/MCTargetDesc/
DRISCVMatInt.cpp183 unsigned TrailingZeros = countTrailingZeros((uint64_t)Val); in generateInstSeq() local
184 int64_t ShiftedVal = Val >> TrailingZeros; in generateInstSeq()
193 TmpSeq.emplace_back(RISCV::SLLI, TrailingZeros); in generateInstSeq()
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp275 unsigned TrailingZeros = in calculateOptimalPad() local
280 long long CurAlignmentBits = 1ull << (std::min)(TrailingZeros, 62u); in calculateOptimalPad()
/openbsd/src/gnu/llvm/llvm/lib/IR/
DValue.cpp975 size_t TrailingZeros = CstInt->getValue().countTrailingZeros(); in getPointerAlignment() local
978 return Align(TrailingZeros < Value::MaxAlignmentExponent in getPointerAlignment()
979 ? uint64_t(1) << TrailingZeros in getPointerAlignment()
/openbsd/src/gnu/llvm/llvm/include/llvm/ADT/
DAPInt.h1593 unsigned TrailingZeros = llvm::countTrailingZeros(U.VAL); in countTrailingZeros() local
1594 return (TrailingZeros > BitWidth ? BitWidth : TrailingZeros); in countTrailingZeros()
/openbsd/src/gnu/llvm/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp5657 unsigned TrailingZeros = countTrailingZeros(Mask); in Select() local
5668 ShiftAmt = TrailingZeros; in Select()
5671 } else if (TrailingZeros == 0 && SavesBytes) { in Select()
5682 unsigned PopCount = 64 - LeadingZeros - TrailingZeros; in Select()
5685 ShiftAmt = TrailingZeros; in Select()
5691 ShiftAmt = TrailingZeros; in Select()
5697 ShiftAmt = TrailingZeros; in Select()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp7328 unsigned TrailingZeros = 0; in expandDIVREMByConstant() local
7330 TrailingZeros = Divisor.countTrailingZeros(); in expandDIVREMByConstant()
7331 Divisor.lshrInPlace(TrailingZeros); in expandDIVREMByConstant()
7353 if (TrailingZeros) { in expandDIVREMByConstant()
7356 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
7364 DAG.getShiftAmountConstant(TrailingZeros, HiLoVT, dl)), in expandDIVREMByConstant()
7366 DAG.getShiftAmountConstant(HBitWidth - TrailingZeros, in expandDIVREMByConstant()
7369 DAG.getShiftAmountConstant(TrailingZeros, HiLoVT, dl)); in expandDIVREMByConstant()
7434 if (TrailingZeros) { in expandDIVREMByConstant()
7435 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
[all …]