| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PaddingChecker.cpp | 273 unsigned TrailingZeros = in calculateOptimalPad() local 278 long long CurAlignmentBits = 1ull << (std::min)(TrailingZeros, 62u); in calculateOptimalPad()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVMatInt.cpp | 265 unsigned TrailingZeros = llvm::countr_zero((uint64_t)Val); in generateInstSeq() local 266 int64_t ShiftedVal = Val >> TrailingZeros; in generateInstSeq() 278 TmpSeq.emplace_back(RISCV::SLLI, TrailingZeros); in generateInstSeq()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInstrInfoZb.td | 221 unsigned TrailingZeros = Imm.countr_zero(); 222 return TrailingZeros > 0 && TrailingZeros < 32 && 223 Imm == UINT64_C(0xFFFFFFFF) << TrailingZeros; 224 }], TrailingZeros>; 558 (BSETI (XLenVT (BSETI GPR:$r, (TrailingZeros BSETINVTwoBitsMask:$i))), 561 (BINVI (XLenVT (BINVI GPR:$r, (TrailingZeros BSETINVTwoBitsMask:$i))),
|
| H A D | RISCVISelDAGToDAG.cpp | 1189 unsigned TrailingZeros = llvm::countr_zero(Mask); in Select() local 1190 if (ShAmt <= 32 && TrailingZeros > 0 && LeadingZeros == 32) { in Select() 1195 CurDAG->getTargetConstant(TrailingZeros, DL, VT)); in Select() 1198 CurDAG->getTargetConstant(TrailingZeros + ShAmt, DL, VT)); in Select() 1202 if (TrailingZeros == 0 && LeadingZeros > ShAmt && in Select() 1239 unsigned TrailingZeros = llvm::countr_zero(Mask); in Select() local 1240 if (LeadingZeros == 32 && TrailingZeros > ShAmt) { in Select() 1243 CurDAG->getTargetConstant(TrailingZeros, DL, VT)); in Select() 1246 CurDAG->getTargetConstant(TrailingZeros - ShAmt, DL, VT)); in Select()
|
| H A D | RISCVInstrInfo.td | 570 def TrailingZeros : SDNodeXForm<imm, [{ 575 GISDNodeXFormEquiv<TrailingZeros>; 590 }], TrailingZeros>; 604 }], TrailingZeros>; 1475 (SLLI (i64 (SRLI $rs, (TrailingZeros imm:$mask))), 1476 (TrailingZeros imm:$mask))>; 2118 (SLLI (i64 (SRLIW $rs, (TrailingZeros imm:$mask))), 2119 (TrailingZeros imm:$mask))>;
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Value.cpp | 1012 size_t TrailingZeros = CstInt->getValue().countr_zero(); in getPointerAlignment() local 1015 return Align(TrailingZeros < Value::MaxAlignmentExponent in getPointerAlignment() 1016 ? uint64_t(1) << TrailingZeros in getPointerAlignment()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 1641 unsigned TrailingZeros = llvm::countr_zero(U.VAL); in countr_zero() local 1642 return (TrailingZeros > BitWidth ? BitWidth : TrailingZeros); in countr_zero()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/ |
| H A D | AMDGPUDisassembler.cpp | 2107 int TrailingZeros = llvm::countr_zero(Mask); in getBitRangeFromMask() local 2111 S << "bit (" << (TrailingZeros + BaseBytes * CHAR_BIT) << ')'; in getBitRangeFromMask() 2114 << (TrailingZeros + PopCount - 1 + BaseBytes * CHAR_BIT) << ':' in getBitRangeFromMask() 2115 << (TrailingZeros + BaseBytes * CHAR_BIT) << ')'; in getBitRangeFromMask()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelDAGToDAG.cpp | 6199 unsigned TrailingZeros = llvm::countr_zero(Mask); in Select() local 6210 ShiftAmt = TrailingZeros; in Select() 6213 } else if (TrailingZeros == 0 && SavesBytes) { in Select() 6224 unsigned PopCount = 64 - LeadingZeros - TrailingZeros; in Select() 6227 ShiftAmt = TrailingZeros; in Select() 6233 ShiftAmt = TrailingZeros; in Select() 6239 ShiftAmt = TrailingZeros; in Select()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanRecipes.cpp | 880 Value *TrailingZeros = Builder.CreateCountTrailingZeroElems( in generate() local 883 Builder.CreateMul(RuntimeVF, Builder.getInt64(Idx)), TrailingZeros); in generate() 885 Value *Cmp = Builder.CreateICmpNE(TrailingZeros, RuntimeVF); in generate()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 8017 unsigned TrailingZeros = 0; in expandDIVREMByConstant() local 8019 TrailingZeros = Divisor.countr_zero(); in expandDIVREMByConstant() 8020 Divisor.lshrInPlace(TrailingZeros); in expandDIVREMByConstant() 8038 if (TrailingZeros) { in expandDIVREMByConstant() 8041 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant() 8049 DAG.getShiftAmountConstant(TrailingZeros, HiLoVT, dl)), in expandDIVREMByConstant() 8051 DAG.getShiftAmountConstant(HBitWidth - TrailingZeros, in expandDIVREMByConstant() 8054 DAG.getShiftAmountConstant(TrailingZeros, HiLoVT, dl)); in expandDIVREMByConstant() 8114 if (TrailingZeros) { in expandDIVREMByConstant() 8116 DAG.getShiftAmountConstant(TrailingZeros, HiLoVT, dl)); in expandDIVREMByConstant()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 6295 auto GetShiftedByZeros = [BitWidth](uint32_t TrailingZeros) { in getConstantMultipleImpl() argument 6296 return TrailingZeros >= BitWidth in getConstantMultipleImpl() 6298 : APInt::getOneBitSet(BitWidth, TrailingZeros); in getConstantMultipleImpl()
|