/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
H A D | DurationFactoryScaleCheck.cpp | 46 // Given the scale of a duration and a `Multiplier`, determine if `Multiplier` 48 // and a suitable Multiplier for that scale, otherwise `std::nullopt`. 50 getNewScaleSingleStep(DurationScale OldScale, double Multiplier) { in getNewScaleSingleStep() argument 53 if (Multiplier <= 1.0 / 60.0) in getNewScaleSingleStep() 54 return std::make_tuple(DurationScale::Minutes, Multiplier * 60.0); in getNewScaleSingleStep() 58 if (Multiplier >= 60.0) in getNewScaleSingleStep() 59 return std::make_tuple(DurationScale::Hours, Multiplier / 60.0); in getNewScaleSingleStep() 60 if (Multiplier <= 1.0 / 60.0) in getNewScaleSingleStep() 61 return std::make_tuple(DurationScale::Seconds, Multiplier * 60.0); in getNewScaleSingleStep() 65 if (Multiplier >= 60.0) in getNewScaleSingleStep() [all …]
|
/llvm-project/llvm/test/Transforms/SimpleLoopUnswitch/ |
H A D | exponential-nontrivial-unswitch.ll | 5 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 9 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 13 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 17 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 21 ; With relaxed candidates multiplier (unscaled candidates == 8) we should allow 22 ; some unswitches to happen until siblings multiplier starts kicking in: 23 ; With relaxed candidates multiplier (unscaled candidates == 8) we should allow 24 ; some unswitches to happen until siblings multiplier starts kicking in: 26 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 30 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ [all …]
|
H A D | exponential-switch-unswitch.ll | 9 ; When we use the stricted multiplier candidates formula (unscaled candidates == 0) 12 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 16 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 20 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 24 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 28 ; With relaxed candidates multiplier (unscaled candidates == 8) we should allow 29 ; some unswitches to happen until siblings multiplier starts kicking in: 35 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 40 ; With relaxed candidates multiplier (unscaled candidates == 8) and with relaxed 41 ; siblings multiplier for top-level loops (toplevel-div == 8) we should get [all …]
|
H A D | exponential-nontrivial-unswitch2.ll | 7 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 11 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 15 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 19 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 23 ; RUN: opt < %s -enable-unswitch-cost-multiplier=false \ 27 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 31 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 35 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 39 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 43 ; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
H A D | exponential-nontrivial-unswitch-nested.ll | 5 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 9 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 13 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 17 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 21 ; When we relax the candidates part of a multiplier formula 23 ; which leads to siblings multiplier kicking in. 29 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 37 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 44 ; loop nests when cost multiplier is disabled: 46 ; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
H A D | exponential-nontrivial-unswitch-nested2.ll | 10 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 14 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 18 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 22 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 26 ; When we relax the candidates part of a multiplier formula 28 ; which leads to siblings multiplier kicking in. 34 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 42 ; RUN: opt < %s -enable-unswitch-cost-multiplier=true \ 47 ; With disabled cost-multiplier we get maximal possible amount of unswitches. 49 ; RUN: opt < %s -enable-unswitch-cost-multiplier=false \
|
/llvm-project/mlir/lib/Dialect/Tosa/Utils/ |
H A D | QuantUtils.cpp | 19 /// From a scale value, generates multiplier and shift values where 21 /// multiplier = mantissa*2^shift for 16-bit scaling. 23 int32_t &multiplier, in computeMultiplierAndShiftTosaScale16() argument 45 multiplier = static_cast<int32_t>(shiftedM); in computeMultiplierAndShiftTosaScale16() 51 // Shifting the multiplier by more than 31-bits is unnecessary. in computeMultiplierAndShiftTosaScale16() 52 multiplier = multiplier >> std::min<int32_t>(31, shift - 62); in computeMultiplierAndShiftTosaScale16() 57 /// From a scale value, generates multiplier and shift values where 59 /// multiplier = mantissa*2^shift for 32-bit scaling. 61 int32_t &multiplier, in computeMultiplierAndShiftTosaScale32() argument 82 multiplier = static_cast<int32_t>(shiftedM); in computeMultiplierAndShiftTosaScale32() [all …]
|
/llvm-project/llvm/test/Transforms/FunctionImport/ |
H A D | hotness_based_import.ll | 6 ; Test import with default hot multiplier (3) and default hot-evolution-factor (1.0) 8 …3.thinlto.bc %t.bc -import-instr-limit=1 --S -import-hot-multiplier=3.0 -import-cold-multiplier=0.… 9 …ummary-file %t3.thinlto.bc %t.bc -import-instr-limit=1 --S -import-hot-multiplier=3.0 | FileCheck … 10 …ummary-file %t3.thinlto.bc %t.bc -import-instr-limit=1 --S -import-hot-multiplier=3.0 -import-inst… 11 …ummary-file %t3.thinlto.bc %t.bc -import-instr-limit=1 --S -import-hot-multiplier=3.0 -import-hot-… 27 …ummary-file %t3.thinlto.bc %t.bc -import-instr-limit=1 --S -import-hot-multiplier=3.0 -import-hot-… 39 ; Test import with hot multiplier 1.0 - treat hot callsites as normal. 40 …t -summary-file %t3.thinlto.bc %t.bc -import-instr-limit=1 -import-hot-multiplier=1.0 --S | FileCh… 50 …e %t3.thinlto.bc %t.bc -import-instr-limit=1 -import-hot-multiplier=1.0 -import-cold-multiplier=1.… 60 ; Test import with hot multiplier 0.0 and high threshold - don't import functions called from hot c… [all …]
|
/llvm-project/clang/lib/Headers/ |
H A D | fmaintrin.h | 31 /// A 128-bit vector of [4 x float] containing the multiplier. 51 /// A 128-bit vector of [2 x double] containing the multiplier. 77 /// A 128-bit vector of [4 x float] containing the multiplier in the low 106 /// A 128-bit vector of [2 x double] containing the multiplier in the low 129 /// A 128-bit vector of [4 x float] containing the multiplier. 149 /// A 128-bit vector of [2 x double] containing the multiplier. 175 /// A 128-bit vector of [4 x float] containing the multiplier in the low 204 /// A 128-bit vector of [2 x double] containing the multiplier in the low 227 /// A 128-bit vector of [4 x float] containing the multiplier. 247 /// A 128-bit vector of [2 x double] containing the multiplier. [all …]
|
/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430Subtarget.cpp | 22 cl::desc("Hardware multiplier use mode for MSP430"), 26 "Do not use hardware multiplier"), 28 "Use 16-bit hardware multiplier"), 30 "Use 32-bit hardware multiplier"), 32 "Use F5 series hardware multiplier")));
|
/llvm-project/libclc/generic/lib/math/ |
H A D | clc_ldexp.cl | 52 const int multiplier = 24; 70 int ex = dexponent + n - multiplier; 73 int ex1 = dexponent + multiplier; 78 dval_ui = dexponent < -multiplier ? 0 : dval_ui; /*underflow*/ 85 ex1 = exponent + multiplier; 90 val_ui = exponent < -multiplier ? 0 : val_ui; /*underflow*/
|
/llvm-project/openmp/runtime/src/ |
H A D | kmp_stats_timing.cpp | 54 uint64_t multiplier; in tick_time() local 57 multiplier = 1000LL * 1000LL; in tick_time() 59 multiplier = 1000LL * 1000LL * 1000LL; in tick_time() 61 multiplier = 1000LL * 1000LL * 1000LL * 1000LL; in tick_time() 63 cout << "Error determining multiplier '" << *end << "'\n"; in tick_time() 77 result = ((double)1.0) / (freq * multiplier); in tick_time()
|
/llvm-project/llvm/test/Transforms/Inline/ML/Inputs/ |
H A D | test-module.ll | 7 %a = call i32 @multiplier(i32 5) 18 %4 = call i32 @multiplier(i32 %3) 25 define internal i32 @multiplier(i32) { 51 %9 = call i32 @multiplier(i32 %8)
|
/llvm-project/llvm/test/Transforms/Inline/ |
H A D | mut-rec-scc.ll | 2 ; RUN: opt -S -intra-scc-cost-multiplier=3 -passes='cgscc(inline,instcombine)' < %s | FileCheck %s … 77 ; The inlined call sites should have the "function-inline-cost-multiplier" call site attribute. 95 ; CHECK: [[COSTMULT]] = { noinline "function-inline-cost-multiplier"="4" } 96 ; THREE: "function-inline-cost-multiplier"="9"
|
/llvm-project/clang/test/CodeGen/X86/ |
H A D | ms-x86-intrinsics.c | 169 __int64 test_mul128(__int64 Multiplier, in test_mul128() argument 172 return _mul128(Multiplier, Multiplicand, HighProduct); in test_mul128() 174 // CHECK-X64-LABEL: define dso_local i64 @test_mul128(i64 noundef %Multiplier, i64 noundef %Multiplicand, ptr{{.*}} initializes((0, 8)) %HighProduct) 175 // CHECK-X64: = sext i64 %Multiplier to i128 181 unsigned __int64 test_umul128(unsigned __int64 Multiplier, in test_umul128() argument 184 return _umul128(Multiplier, Multiplicand, HighProduct); in test_umul128() 186 // CHECK-X64-LABEL: define dso_local i64 @test_umul128(i64 noundef %Multiplier, i64 noundef %Multiplicand, ptr{{.*}} initializes((0, 8)) %HighProduct) 187 // CHECK-X64: = zext i64 %Multiplier to i128
|
/llvm-project/mlir/test/lib/Dialect/MemRef/ |
H A D | TestMultiBuffer.cpp | 34 Option<unsigned> multiplier{ member 35 *this, "multiplier", 46 (void)multiBuffer(alloc, multiplier); in runOnOperation()
|
/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | MSP430.cpp | 72 // 'auto' - deduce hw multiplier support based on mcu name provided. in getMSP430TargetFeatures() 73 // If no mcu name is provided, assume no hw multiplier is supported. in getMSP430TargetFeatures() 80 // 'none' - disable hw multiplier. in getMSP430TargetFeatures() 94 // '16bit' - for 16-bit only hw multiplier. in getMSP430TargetFeatures() 97 // '32bit' - for 16/32-bit hw multiplier. in getMSP430TargetFeatures() 100 // 'f5series' - for 16/32-bit hw multiplier supported by F5 series mcus. in getMSP430TargetFeatures()
|
/llvm-project/third-party/benchmark/src/ |
H A D | complexity.cc | 227 // time unit multiplier. But since RMS is a relative quantity it in ComputeBigO() 229 // multiplier so that when it is multiplied later the result is the in ComputeBigO() 231 double multiplier = GetTimeUnitMultiplier(reports[0].time_unit); in ComputeBigO() local 246 rms.real_accumulated_time = result_real.rms / multiplier; in ComputeBigO() 247 rms.cpu_accumulated_time = result_cpu.rms / multiplier; in ComputeBigO()
|
/llvm-project/lldb/examples/python/ |
H A D | performance.py | 351 multiplier = 1 354 multiplier = 1024 357 multiplier = 1024 * 1024 360 multiplier = 1024 * 1024 * 1024 362 multiplier = 1024 * 1024 * 1024 * 1024 364 self.value[self.stats[idx]] = int(stat) * multiplier
|
/llvm-project/mlir/test/lib/Dialect/Tosa/ |
H A D | TosaTestPasses.cpp | 162 int32_t multiplier; in matchAndRewrite() local 165 // Obtain the quantized scale = multiplier and shift. in matchAndRewrite() 166 computeMultiplierAndShift(opTensorScale, multiplier, shift, 32); in matchAndRewrite() 171 rewriter.getDenseI32ArrayAttr({multiplier}), in matchAndRewrite()
|
/llvm-project/clang/include/clang/Basic/Target/MSP430/ |
H A D | gen-msp430-def.py | 101 assert 0, "Unknown multiplier type" 109 def_file.write("\n// With 16-bit hardware multiplier\n") 114 def_file.write("\n// With 32-bit hardware multiplier\n")
|
/llvm-project/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/ |
H A D | values.pass.cpp | 16 // static constexpr result_type multiplier = a; 39 static_assert((LCE::multiplier == a), ""); in test1() 60 where(LCE::multiplier); in test1()
|
/llvm-project/openmp/runtime/test/tasking/ |
H A D | omp_record_replay_deps.cpp | 6 #define MULTIPLIER 100 macro 37 val *= MULTIPLIER; in mult()
|
H A D | omp_record_replay_multiTDGs.cpp | 6 #define MULTIPLIER 100 macro 36 val *= MULTIPLIER; in mult()
|
/llvm-project/cross-project-tests/debuginfo-tests/dexter/dex/heuristic/ |
H A D | Heuristic.py | 31 help="set the penalty multiplier for each" 40 help="set the penalty multiplier for each" " occurrence of a misordered value.", 47 help="set the penalty multiplier for each" 56 help="set the penalty multiplier for each" 65 help="set the penalty multiplier for each missing" " value", 72 help="set the penalty multiplier for each"
|