Home
last modified time | relevance | path

Searched refs:isPowerOf2_64 (Results 1 – 25 of 72) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsLegalizerInfo.cpp32 assert(isPowerOf2_64(MemSize) && "Expected power of 2 memory size"); in isUnalignedMemmoryAccess()
33 assert(isPowerOf2_64(AlignInBits) && "Expected power of 2 align"); in isUnalignedMemmoryAccess()
45 if (!isPowerOf2_64(QueryMemSize)) in CheckTy0Ty1MemSizeAlign()
138 if (!isPowerOf2_64(Query.MMODescrs[0].MemoryTy.getSizeInBits())) in MipsLegalizerInfo()
359 if (isPowerOf2_64(MemSize)) { in legalizeCustom()
H A DMipsPreLegalizerCombiner.cpp74 !isPowerOf2_64(MMO->getSize().getValue())) in tryCombineAll()
H A DMipsAsmPrinter.cpp510 if (!isPowerOf2_64(MO.getImm())) in PrintAsmOperand()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp351 if (!isPowerOf2_64(PointerABIAlign)) in parseSpecifier()
365 if (!isPowerOf2_64(PointerPrefAlign)) in parseSpecifier()
423 if (ABIAlign != 0 && !isPowerOf2_64(ABIAlign)) in parseSpecifier()
441 if (PrefAlign != 0 && !isPowerOf2_64(PrefAlign)) in parseSpecifier()
469 if (Alignment != 0 && !llvm::isPowerOf2_64(Alignment)) in parseSpecifier()
490 if (Alignment != 0 && !llvm::isPowerOf2_64(Alignment)) in parseSpecifier()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp92 assert(llvm::isPowerOf2_64(RL.getAlignment().getQuantity())); in visitRecord()
259 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAlignment.h78 assert(llvm::isPowerOf2_64(Value) && "Alignment is not a power of 2"); in Align()
134 assert((Value == 0 || llvm::isPowerOf2_64(Value)) && in MaybeAlign()
H A DMathExtras.h296 constexpr bool isPowerOf2_64(uint64_t Value) { in isPowerOf2_64() function
330 static_assert(kValue > 0 && llvm::isPowerOf2_64(kValue), in CTLog2()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h327 return NumElements > 1 && isPowerOf2_64(NumElements) && EltSize >= 8 && in isLegalNTStoreLoad()
328 EltSize <= 128 && isPowerOf2_64(EltSize); in isLegalNTStoreLoad()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DVTEmitter.cpp66 if ((isPowerOf2_64(OutputVTSize) && OutputVTSize >= 8 && in VTtoGetLLVMTyString()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DAlignmentFromAssumptions.cpp72 if (isPowerOf2_64(DiffUnitsAbs)) in getNewAlignmentDiff()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLink.h166 assert(isPowerOf2_64(Alignment) && "Alignment must be power of 2"); in Block()
183 assert(isPowerOf2_64(Alignment) && "Alignment must be power of 2"); in Block()
202 assert(isPowerOf2_64(Alignment) && "Alignment must be power of 2"); in Block()
297 assert(isPowerOf2_64(Alignment) && "Alignment must be a power of two"); in setAlignment()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DVFABIDemangling.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoZb.td87 return !isInt<12>(Imm) && isPowerOf2_64(~Imm);
94 return !isInt<12>(Imm) && isPowerOf2_64(Imm);
125 return isPowerOf2_64(N->getZExtValue() & ~0x7ff);
168 return Subtarget->is64Bit() ? isPowerOf2_64(~I) : isPowerOf2_32(~I);
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMIRYamlMapping.h156 if (n > 0 && !isPowerOf2_64(n))
172 if (!isPowerOf2_64(N))
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86SelectionDAGInfo.cpp190 assert(isPowerOf2_64(Align) && "Align is a power of 2"); in getOptimalRepmovsType()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DCOFFMasmParser.cpp299 if (!isPowerOf2_64(Alignment) || Alignment > 8192) { in ParseDirectiveSegment()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp54 if (STI.hasFeature(RISCV::FeatureStdExtZbs) && isPowerOf2_64(Val) && in generateInstSeqImpl()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DRecordLayoutBuilder.cpp1941 if (!llvm::isPowerOf2_64(TypeSize.getQuantity())) { in LayoutField()
1967 llvm::isPowerOf2_64(TypeSize.getQuantity())) in LayoutField()
2235 assert(llvm::isPowerOf2_64(NewAlignment.getQuantity()) && in UpdateAlignment()
2241 assert(llvm::isPowerOf2_64(UnpackedNewAlignment.getQuantity()) && in UpdateAlignment()
2247 assert(llvm::isPowerOf2_64(PreferredNewAlignment.getQuantity()) && in UpdateAlignment()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp495 cast<BinaryOperator>(I)->isExact() && isPowerOf2_64(Imm)) { in selectBinaryOp()
502 isPowerOf2_64(Imm)) { in selectBinaryOp()
1988 if (Opcode == ISD::MUL && isPowerOf2_64(Imm)) { in fastEmit_ri_()
1991 } else if (Opcode == ISD::UDIV && isPowerOf2_64(Imm)) { in fastEmit_ri_()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp339 if (!isPowerOf2_64((uint64_t)PageSize)) { in allocate()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUInstPrinter.cpp1647 isPowerOf2_64(XorMask + 1)) { in printSwizzle()
1658 isPowerOf2_64(GroupSize) && in printSwizzle()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetInfo.h845 llvm::isPowerOf2_64(AtomicSizeInBits / getCharWidth())); in hasBuiltinAtomic()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DX86.cpp3219 bool IsIndirect = Width > 64 || !llvm::isPowerOf2_64(Width); in EmitMSVAArg()
3305 if (Width > 64 || !llvm::isPowerOf2_64(Width)) in classify()
3421 bool IsIndirect = Width > 64 || !llvm::isPowerOf2_64(Width); in EmitVAArg()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp817 if (!isPowerOf2_64(ByteAlignment)) in ParseDirectiveComm()
831 if (!isPowerOf2_64(AccessAlignment)) in ParseDirectiveComm()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVLegalizerInfo.cpp602 if (isPowerOf2_64(Val)) { in legalizeVScale()

123