Home
last modified time | relevance | path

Searched refs:CTLog2 (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Support/
H A DMathExtrasTest.cpp244 TEST(MathExtras, CTLog2) { in TEST() argument
245 EXPECT_EQ(CTLog2<1ULL << 0>(), 0U); in TEST()
246 EXPECT_EQ(CTLog2<1ULL << 1>(), 1U); in TEST()
247 EXPECT_EQ(CTLog2<1ULL << 2>(), 2U); in TEST()
248 EXPECT_EQ(CTLog2<1ULL << 3>(), 3U); in TEST()
249 EXPECT_EQ(CTLog2<1ULL << 4>(), 4U); in TEST()
250 EXPECT_EQ(CTLog2<1ULL << 5>(), 5U); in TEST()
251 EXPECT_EQ(CTLog2<1ULL << 6>(), 6U); in TEST()
252 EXPECT_EQ(CTLog2<1ULL << 7>(), 7U); in TEST()
253 EXPECT_EQ(CTLog2<1ULL << 8>(), 8U); in TEST()
[all …]
/llvm-project-15.0.7/lld/MachO/
H A DTarget.h42 p2WordSize = llvm::CTLog2<LP::wordSize>(); in TargetInfo()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DMathExtras.h603 template <size_t kValue> constexpr inline size_t CTLog2() {
606 return 1 + CTLog2<kValue / 2>();
609 template <> constexpr inline size_t CTLog2<1>() { return 0; }
H A DAlignment.h97 return LogValue{static_cast<uint8_t>(CTLog2<kValue>())}; in Constant()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp7690 std::array<AccessSet *, llvm::CTLog2<VALID_STATE>()> AccessKind2Accesses;