reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/AVR/AVRGenDAGISel.inc
 1606   return isPowerOf2_32(uint8_t(N->getZExtValue()));
 1631   return isPowerOf2_32(uint8_t(~N->getZExtValue()));
gen/lib/Target/Hexagon/HexagonGenDAGISel.inc
72433   return isPowerOf2_32(NV);
72442   return isPowerOf2_32(NV);
72451   return isPowerOf2_32(NV);
72460   return isPowerOf2_32(V);
72557   assert(isPowerOf2_32(VecSize));
gen/lib/Target/Mips/MipsGenDAGISel.inc
30154     return isPowerOf2_32(Imm) && isUInt<32>(Imm);
include/llvm/Analysis/TargetTransformInfoImpl.h
  254     return Alignment >= DataSize && isPowerOf2_32(DataSize);
  261     return Alignment >= DataSize && isPowerOf2_32(DataSize);
include/llvm/CodeGen/BasicTTIImpl.h
 1134       OpPropsBW = isPowerOf2_32(RetTy->getScalarSizeInBits()) ? TTI::OP_PowerOf2
include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h
   40       assert(isPowerOf2_32(Alignment) && "Alignment must be power of 2");
include/llvm/MC/MCSymbol.h
  354     assert((!Align || isPowerOf2_32(Align)) &&
lib/Analysis/DemandedBits.cpp
  156           if (isPowerOf2_32(BitWidth))
lib/Analysis/TargetTransformInfo.cpp
 1022   if (!isPowerOf2_32(NumVecElems))
 1087   if (!isPowerOf2_32(NumVecElems))
lib/AsmParser/LLParser.cpp
 2083   if (!isPowerOf2_32(Value))
 2276   if (!isPowerOf2_32(Alignment))
lib/Bitcode/Reader/BitcodeReader.cpp
 1339   assert((!Alignment || isPowerOf2_32(Alignment)) &&
lib/CodeGen/ExecutionDomainFix.cpp
  320   if (isPowerOf2_32(available)) {
lib/CodeGen/GlobalISel/CombinerHelper.cpp
  388   if (!isPowerOf2_32(LoadValueTy.getSizeInBits()))
lib/CodeGen/GlobalISel/LegalityPredicates.cpp
  118     return !isPowerOf2_32(QueryTy.getScalarSizeInBits());
  125     return QueryTy.isScalar() && !isPowerOf2_32(QueryTy.getSizeInBits());
  139     return !isPowerOf2_32(Query.MMODescrs[MMOIdx].SizeInBits / 8);
  146     return QueryTy.isVector() && !isPowerOf2_32(QueryTy.getNumElements());
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
 1663     if (!isPowerOf2_32(Ty.getSizeInBits()))
 2052         if (isPowerOf2_32(DstTy.getSizeInBits()))
 2141     if (isPowerOf2_32(SrcTy.getSizeInBits()))
lib/CodeGen/InterleavedAccessPass.cpp
  206     if (!isPowerOf2_32(LaneLen))
lib/CodeGen/MIRParser/MIParser.cpp
 2570   if (!isPowerOf2_32(Alignment))
lib/CodeGen/SafeStack.cpp
  541     assert(isPowerOf2_32(FrameAlignment));
  664     assert(isPowerOf2_32(Align));
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 7235   if (isPowerOf2_32(Bitsize) && Bitsize > 1) {
 7946   if (isPowerOf2_32(BitWidth))
 7988   if (isPowerOf2_32(BitWidth)) {
14648     if (Width < 8 || !isPowerOf2_32(Width) || (Shift & 0x7))
17112                  isPowerOf2_32(OutScalarTy.getSizeInBits()) &&
17113                  isPowerOf2_32(SourceType.getSizeInBits());
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
 2548   if (Sz >= 8 && isPowerOf2_32(Sz)) {
 3452     if (llvm::isPowerOf2_32(EntrySize))
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  928     assert(isPowerOf2_32(NumElts) &&
 1920   assert(isPowerOf2_32(NVTBits) &&
 2006   assert(isPowerOf2_32(NVTBits) &&
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
 4694         isPowerOf2_32(WidenWidth / MemVTWidth) &&
 4715         isPowerOf2_32(WidenWidth / MemVTWidth) &&
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 3003   if (!isPowerOf2_32(ElemNum))
 6244     if (X == Y && isPowerOf2_32(VT.getScalarSizeInBits())) {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 3632     assert(isPowerOf2_32(A) && "Unexpected alignment");
lib/CodeGen/SelectionDAG/TargetLowering.cpp
  535   if (!isPowerOf2_32(SmallVTBits))
 5810   if (isPowerOf2_32(EltSizeInBits)) {
 5865   assert(isPowerOf2_32(EltSizeInBits) && EltSizeInBits > 1 &&
 6247   if (VT.isVector() && (!isPowerOf2_32(NumBitsPerElt) ||
 6299   if (VT.isVector() && (!isPowerOf2_32(NumBitsPerElt) ||
 6782   if (isPowerOf2_32(NElts)) {
lib/CodeGen/TargetLoweringBase.cpp
  853     if (BitSize < 8 || !isPowerOf2_32(BitSize)) {
  971   if (!isPowerOf2_32(NumElts)) {
  993   if (!isPowerOf2_32(NewVTSize))
 1300       if (isPowerOf2_32(NElts)) {
 1423   if (!isPowerOf2_32(NumElts)) {
 1448   if (!isPowerOf2_32(NewVTSize))
lib/IR/AutoUpgrade.cpp
  994   assert(isPowerOf2_32(NumElts) && "NumElts not a power of 2!");
lib/IR/IRBuilder.cpp
  161   assert((DstAlign == 0 || isPowerOf2_32(DstAlign)) && "Must be 0 or a power of 2");
  162   assert((SrcAlign == 0 || isPowerOf2_32(SrcAlign)) && "Must be 0 or a power of 2");
  241   assert((DstAlign == 0 || isPowerOf2_32(DstAlign)) && "Must be 0 or a power of 2");
  242   assert((SrcAlign == 0 || isPowerOf2_32(SrcAlign)) && "Must be 0 or a power of 2");
lib/IR/Instructions.cpp
 2004   if (NumElts < 2 || !isPowerOf2_32(NumElts))
lib/IR/Type.cpp
  270   return (BitWidth > 7) && isPowerOf2_32(BitWidth);
lib/IR/Verifier.cpp
 4353       return Alignment == 0 || isPowerOf2_32(Alignment);
lib/MC/MCAsmStreamer.cpp
  772   assert(isPowerOf2_32(ByteAlignment) && "Alignment must be a power of 2.");
  821       assert(isPowerOf2_32(ByteAlign) && "alignment must be a power of 2");
 1126     if (!isPowerOf2_32(ByteAlignment))
 1137   if (isPowerOf2_32(ByteAlignment)) {
lib/MC/MachObjectWriter.cpp
  245   assert(isPowerOf2_32(Section.getAlignment()) && "Invalid alignment!");
lib/MC/XCOFFObjectWriter.cpp
  634   assert(isPowerOf2_32(Align) && "Alignment must be a power of 2.");
lib/ObjectYAML/COFFEmitter.cpp
   96         if (!isPowerOf2_32(Sec.Alignment)) {
lib/Support/FoldingSet.cpp
  271   assert(isPowerOf2_32(NewBucketCount) && "Bad bucket count!");
lib/Target/AArch64/AArch64InstructionSelector.cpp
 4243     if (!isPowerOf2_32(ImmVal))
lib/Target/AArch64/AArch64LegalizerInfo.cpp
  191         return isPowerOf2_32(Ty1.getSizeInBits()) &&
  211         return isPowerOf2_32(Ty0.getSizeInBits()) &&
  353     if (DstSize < 8 || DstSize > 128 || !isPowerOf2_32(DstSize))
  366     if (SrcSize < 8 || !isPowerOf2_32(SrcSize))
  475         if (!isPowerOf2_32(EltTy.getSizeInBits()))
  503               return !isPowerOf2_32(Ty.getSizeInBits()) &&
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  191   assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
 1011         if (!isPowerOf2_32(EltTy.getSizeInBits()))
 1051         return !isPowerOf2_32(Ty.getSizeInBits()) &&
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  597   if (Size != Align || !isPowerOf2_32(Size))
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
  142     assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
  510   assert(isPowerOf2_32(Align));
lib/Target/AMDGPU/SIISelLowering.cpp
 4842   assert(isPowerOf2_32(EltSize));
 4883   assert(isPowerOf2_32(EltSize));
 5667          isPowerOf2_32(NumElts));
lib/Target/AMDGPU/SIMemoryLegalizer.cpp
  147         isPowerOf2_32(uint32_t(InstrAddrSpace)))
lib/Target/AMDGPU/SIShrinkInstructions.cpp
  332       if (isPowerOf2_32(~Imm)) {
  340       if (isPowerOf2_32(Imm)) {
lib/Target/ARM/ARMConstantIslandPass.cpp
  522     assert(isPowerOf2_32(Align) && "Invalid alignment");
lib/Target/ARM/ARMISelDAGToDAG.cpp
  667         if (isPowerOf2_32(RHSC)) {
 3069       if (isPowerOf2_32(RHSV-1)) {  // 2^n+1?
 3088       if (isPowerOf2_32(RHSV+1)) {  // 2^n-1?
lib/Target/ARM/ARMISelLowering.cpp
11854     if (isPowerOf2_32(MulAmt - 1)) {
11862     } else if (isPowerOf2_32(MulAmt + 1)) {
11874     if (isPowerOf2_32(MulAmtAbs + 1)) {
11882     } else if (isPowerOf2_32(MulAmtAbs - 1)) {
13267   if (!isPowerOf2_32(NumElems * FromEltSz * ToEltSz))
13853       !isPowerOf2_32(NumElements))
15009     return isPowerOf2_32(Scale);
15068       return isPowerOf2_32(Scale & ~1);
15086       return isPowerOf2_32(Scale);
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
  962       if (Firstcond == ARMCC::AL && !isPowerOf2_32(Mask))
lib/Target/Hexagon/HexagonConstExtenders.cpp
   43   assert(isPowerOf2_32(A));
   49   assert(isPowerOf2_32(A));
lib/Target/Hexagon/HexagonFrameLowering.cpp
 1532     assert(isPowerOf2_32(Align));
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
  813   assert(isPowerOf2_32(-Mask));
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
 1679   assert(isPowerOf2_32(VecLen) && Log2_32(VecLen) <= 8);
 1789     if (!isPowerOf2_32(X))
lib/Target/Hexagon/HexagonISelLowering.cpp
  901   assert(isPowerOf2_32(NumVectorElements) &&
lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
  827     assert(isPowerOf2_32(Rep) && HwLen % Rep == 0);
 1090   assert(isPowerOf2_32(NumOp) && HwLen % NumOp == 0);
 1245   assert(isPowerOf2_32(ElemWidth) && ElemWidth <= 32);
lib/Target/Hexagon/HexagonInstrInfo.cpp
 2698     assert(isPowerOf2_32(VectorSize));
lib/Target/Hexagon/HexagonStoreWidening.cpp
  321   assert(isPowerOf2_32(SizeAccum) && "First store size not a power of 2");
  365     if (isPowerOf2_32(SizeAccum)) {
lib/Target/Hexagon/RDFGraph.h
  380       assert(isPowerOf2_32(NPB));
lib/Target/Mips/MipsConstantIslandPass.cpp
  558     assert(isPowerOf2_32(Align) && "Invalid alignment");
lib/Target/Mips/MipsInstructionSelector.cpp
  314     assert(isPowerOf2_32(EntrySize) &&
lib/Target/NVPTX/NVPTXISelLowering.cpp
  236   assert(isPowerOf2_32(AccessSize) && "must be a power of 2!");
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
  404                                     isPowerOf2_32(getImm()); }
lib/Target/PowerPC/PPCFrameLowering.cpp
  912     assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) &&
lib/Target/PowerPC/PPCISelLowering.cpp
 1793   assert(N->getValueType(0) == MVT::v16i8 && isPowerOf2_32(EltSize) &&
10246         isPowerOf2_32(OpVT.getVectorElementType().getSizeInBits()))
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
   51   assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  234   assert(isPowerOf2_32(TyWidth) && "Type width must be power of 2");
lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
   24   assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
lib/Target/X86/Utils/X86ShuffleDecode.cpp
  138   assert(isPowerOf2_32(NumElts) && "NumElts should be power of 2");
lib/Target/X86/X86CallFrameOptimization.cpp
  245   assert(isPowerOf2_32(SlotSize) && "Expect power of 2 stack slot size");
lib/Target/X86/X86ISelLowering.cpp
 1945       (!isPowerOf2_32(VT.getVectorNumElements()) ||
 1965       (!isPowerOf2_32(VT.getVectorNumElements()) ||
 1982       (!isPowerOf2_32(VT.getVectorNumElements()) ||
 5468   assert(isPowerOf2_32(ElemsPerChunk) && "Elements per chunk not power of 2");
 5517   assert(isPowerOf2_32(ElemsPerChunk) && "Elements per chunk not power of 2");
 7999   if (ZeroMask.isNullValue() && isPowerOf2_32(NumElems) && Subtarget.hasAVX() &&
 8130   if (!isPowerOf2_32(Delta) || Delta == 1)
10016   assert(NumOperands > 1 && isPowerOf2_32(NumOperands) &&
14108   assert(isPowerOf2_32((uint32_t)ShuffleModulus) &&
17426     assert(isPowerOf2_32(ElemsPerChunk) && "Elements per chunk not power of 2");
17602     assert(isPowerOf2_32(NumEltsIn128));
19209   if (!isPowerOf2_32(NumElems))
29465     assert(isPowerOf2_32(Align) && "Alignment must be a power of 2");
33097   assert(isPowerOf2_32(RootMask.size()) && "Non-power-of-2 shuffle mask sizes");
33098   assert(isPowerOf2_32(OpMask.size()) && "Non-power-of-2 shuffle mask sizes");
33108   assert(isPowerOf2_32(MaskWidth) && "Non-power-of-2 shuffle mask sizes");
33109   assert(isPowerOf2_32(RootRatio) && "Non-power-of-2 shuffle mask sizes");
33110   assert(isPowerOf2_32(OpRatio) && "Non-power-of-2 shuffle mask sizes");
35857     if (NumElts > 64 || !isPowerOf2_32(NumElts))
36318       !isPowerOf2_32(VecVT.getVectorNumElements()))
37093       isPowerOf2_32(VT.getVectorNumElements()) &&
37162       isPowerOf2_32(VT.getVectorNumElements()) &&
38076       !isPowerOf2_32(VT.getVectorNumElements()))
38395     if (TO >= 8 && isPowerOf2_32(TO))
39998   if (isPowerOf2_32(VT.getVectorNumElements()) && !PreferAVX512 &&
40076         NumElems >= 2 && isPowerOf2_32(NumElems)))
41083         (OutSVT == MVT::i8 || OutSVT == MVT::i16) && isPowerOf2_32(NumElems) &&
41231   if (ScalarVT != MVT::i16 || NumElems < 8 || !isPowerOf2_32(NumElems))
43852       !isPowerOf2_32(VT.getVectorNumElements()))
43952       !isPowerOf2_32(VT.getVectorNumElements()))
lib/Target/X86/X86TargetTransformInfo.cpp
   61   assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
 2426     if (!isPowerOf2_32(NumElem)) {
 2467       !isPowerOf2_32(NumElem)) {
 3312       !isPowerOf2_32(DataSize))
 3373     if (NumElts == 1 || !isPowerOf2_32(NumElts))
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
   72   if (!isPowerOf2_32(I.getType()->getScalarSizeInBits()))
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 2032   if (!isPowerOf2_32(Width))
lib/Transforms/InstCombine/InstCombineCalls.cpp
  262   if (Len <= 8 && isPowerOf2_32((uint32_t)Len)) {
 1450   if (!isPowerOf2_32(Alignment))
 2002     if (!isPowerOf2_32(BitWidth))
lib/Transforms/InstCombine/InstCombineCasts.cpp
  504   if (!isPowerOf2_32(NarrowWidth))
lib/Transforms/InstCombine/InstCombineSelect.cpp
 2162   if (!isPowerOf2_32(Width))
lib/Transforms/InstCombine/InstCombineShifts.cpp
  985     if (II && isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt &&
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 1839       !isPowerOf2_32(Shuf.getType()->getVectorNumElements()) ||
 1840       !isPowerOf2_32(Shuffle0->getType()->getVectorNumElements()) ||
 1841       !isPowerOf2_32(X->getType()->getVectorNumElements()) ||
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2055     assert(isPowerOf2_32(SizeOfGlobalStruct) &&
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  721   if (isPowerOf2_32(Count)) {
lib/Transforms/Utils/LoopUtils.cpp
  827   assert(isPowerOf2_32(VF) &&
lib/Transforms/Utils/VNCoercion.cpp
  419     if (!isPowerOf2_32(NewLoadSize))
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  965   if (!isPowerOf2_32(Sz) || VF < 2 || ChainSize < 2) {
 1116   if (!isPowerOf2_32(Sz) || VF < 2 || ChainSize < 2) {
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
   56     return isPowerOf2_32(Val) && Val <= VectorizerParams::MaxVectorWidth;
   58     return isPowerOf2_32(Val) && Val <= MaxInterleaveFactor;
lib/Transforms/Vectorize/LoopVectorize.cpp
 2618     assert(isPowerOf2_32(VF * UF) &&
 4970              isPowerOf2_32(ConstTripCount)) {
 6413     assert(isPowerOf2_32(VF) && "VF needs to be a power of two");
 6449     assert(isPowerOf2_32(UserVF) && "VF needs to be a power of two");
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2286         !llvm::isPowerOf2_32(NumUniqueScalarValues)) {
 3694         !llvm::isPowerOf2_32(UniqueValues.size()))
 5342   if (!isPowerOf2_32(Sz) || VF < 2)
 5566       if (!isPowerOf2_32(OpsWidth) || OpsWidth < 2)
 6581     assert(isPowerOf2_32(ReduxWidth) &&
tools/clang/include/clang/Basic/XRayInstr.h
   47     assert(llvm::isPowerOf2_32(K));
   54     assert(llvm::isPowerOf2_32(K));
tools/clang/lib/AST/ASTContext.cpp
 2209   assert(llvm::isPowerOf2_32(Align) && "Alignment must be power of 2");
tools/clang/lib/CodeGen/CGBuiltin.cpp
10867     assert(llvm::isPowerOf2_32(SubVectors) && "Expected power of 2 subvectors");
10905     assert(llvm::isPowerOf2_32(SubVectors) && "Expected power of 2 subvectors");
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp
  520     if (Size.getQuantity() >= 16 || !llvm::isPowerOf2_32(Size.getQuantity())) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
10585   if (ISA == 'n' && UserVLEN && !llvm::isPowerOf2_32(UserVLEN)) {
tools/clang/lib/CodeGen/TargetInfo.cpp
 5260     if (!llvm::isPowerOf2_32(NumElements))
 5270   if (!llvm::isPowerOf2_32(elts))
 6193       if (!llvm::isPowerOf2_32(NumElements) && NumElements != 3)
 6200       if (!llvm::isPowerOf2_32(NumElements))
 6243   if (!llvm::isPowerOf2_32(numElts))
tools/clang/lib/Frontend/CompilerInvocation.cpp
 2813   if (Opts.NewAlignOverride && !llvm::isPowerOf2_32(Opts.NewAlignOverride)) {
tools/clang/lib/Lex/HeaderMap.cpp
   93   if (!llvm::isPowerOf2_32(NumBuckets))
  216   assert(llvm::isPowerOf2_32(NumBuckets) && "Expected power of 2");
tools/lld/COFF/Chunks.cpp
  871   assert(isPowerOf2_32(c->getAlignment()));
tools/lld/COFF/Chunks.h
   72     assert(llvm::isPowerOf2_32(align) && "alignment is not a power of 2");
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  253     if (!llvm::isPowerOf2_32(alignment))
tools/lldb/tools/lldb-test/lldb-test.cpp
  931   if (!isPowerOf2_32(Alignment)) {
tools/llvm-exegesis/lib/CodeTemplate.cpp
   67   return isPowerOf2_32(static_cast<uint32_t>(Execution));
tools/llvm-lipo/llvm-lipo.cpp
  332     if (!isPowerOf2_32(AlignmentValue))
unittests/Support/MathExtrasTest.cpp
  179   EXPECT_FALSE(isPowerOf2_32(0));
  180   EXPECT_TRUE(isPowerOf2_32(1 << 6));
  181   EXPECT_TRUE(isPowerOf2_32(1 << 12));
  182   EXPECT_FALSE(isPowerOf2_32((1 << 19) + 3));
  183   EXPECT_FALSE(isPowerOf2_32(0xABCDEF0));
utils/TableGen/DAGISelMatcherGen.cpp
  345       if (!isPowerOf2_32(II->getValue())) {  // Don't bother with single bits.