Home
last modified time | relevance | path

Searched +full:max +full:- +full:size (Results 1 – 25 of 1137) sorted by relevance

12345678910>>...46

/llvm-project/lld/test/ELF/
H A Dcommon-page.s3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
10 # Increase max-page-size to 64k while using the default x86_64 common page size
12 # section using the common page size.
14 # RUN: ld.lld -z max-page-size=0x10000 -z common-page-size=0x1000 %t -o %t2 2>&1 | count 0
15 # RUN: llvm-readobj --sections -l %t2 | FileCheck --check-prefix=CHECK-MAX %s
17 # CHECK-MAX: Sections [
18 # CHECK-MAX-NEXT: Section {
19 # CHECK-MAX-NEXT: Index: 0
20 # CHECK-MAX-NEXT: Name: (0)
21 # CHECK-MAX-NEXT: Type: SHT_NULL (0x0)
[all …]
H A Dmagic-page-combo-warn.s2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # Test that we warn when a page size is set and paging is disabled by -n or -N.
6 # RUN: ld.lld -z max-page-size=0x10 -z common-page-size=0x10 -N %t -o %t2 2>&1 | FileCheck --check-
7 # RUN: llvm-readobj --program-headers %t2 | FileCheck --check-prefix=OMAGIC %s
8 # RUN: ld.lld -z max-page-size=0x10 -z common-page-size=0x10 --omagic %t -o %t2 2>&1 | FileCheck -…
9 # RUN: llvm-readobj --program-headers %t2 | FileCheck --check-prefix=OMAGIC %s
11 # WARN: ld.lld: warning: -z max-page-size set, but paging disabled by omagic or nmagic
12 # WARN-NEXT: ld.lld: warning: -z common-page-size set, but paging disabled by omagic or nmagic
16 # OMAGIC-NEXT: Offset: 0xB0
17 # OMAGIC-NEXT: VirtualAddress:
[all …]
/llvm-project/clang/test/CodeGen/RISCV/
H A Driscv-atomics.c1 // RUN: %clang_cc1 -triple riscv32 -O1 -emit-llvm %s -o - \
2 // RUN: -verify=no-atomics
3 // RUN: %clang_cc1 -triple riscv32 -targe
[all...]
/llvm-project/clang/test/CodeGenCXX/
H A Dauto-var-init-max-size.cpp1 // Pattern related max size tests: 1, 1024, 4096
2-triple x86_64-unknown-unknown -ftrivial-auto-var-init=pattern -ftrivial-auto-var-init-max-size=1 …
3-triple x86_64-unknown-unknown -ftrivial-auto-var-init=pattern -ftrivial-auto-var-init-max-size=10…
4-triple x86_64-unknown-unknown -ftrivial-auto-var-init=pattern -ftrivial-auto-var-init-max-size=40…
6 // Zero related max size tests: 1, 1024, 4096
7-triple x86_64-unknown-unknown -ftrivial-auto-var-init=zero -ftrivial-auto-var-init-max-size=1 %s
8-triple x86_64-unknown-unknown -ftrivial-auto-var-init=zero -ftrivial-auto-var-init-max-size=1024 …
9-triple x86_64-unknown-unknown -ftrivial-auto-var-init=zero -ftrivial-auto-var-init-max-size=4096 …
25 // VLA, non-constant size in foo()
27 // builtin, non-constant size in foo()
[all …]
/llvm-project/compiler-rt/test/hwasan/TestCases/
H A Dsizes.cpp3 // RUN: %clangxx_hwasan %s -nostdlib++ -lstdc++ -o %t || %clangxx_hwasan %s -o %t
4 …llocator_may_return_null=0 not %run %t malloc 2>&1 | FileCheck %s --check-prefix=CHECK-max
6 …ts=allocator_may_return_null=0 not %run %t malloc max 2>&1 | FileCheck %s --check-prefix=CHEC…
7 // RUN: %env_hwasan_opts=allocator_may_return_null=1 %run %t malloc max 2>&1
8 …cator_may_return_null=0 not %run %t calloc 2>&1 | FileCheck %s --check-prefix=CHECK-calloc
10 …may_return_null=0 not %run %t reallocarray 2>&1 | FileCheck %s --check-prefix=CHECK-reallocarray
12 …llocator_may_return_null=0 not %run %t new 2>&1 | FileCheck %s --check-prefix=CHECK-max
13 …llocator_may_return_null=1 not %run %t new 2>&1 | FileCheck %s --check-prefix=CHECK-oom
14 …pts=allocator_may_return_null=0 not %run %t new max 2>&1 | FileCheck %s --check-prefix=CHE…
15 …_opts=allocator_may_return_null=1 not %run %t new max 2>&1 | FileCheck %s --check-prefix=C…
[all …]
/llvm-project/clang/lib/Headers/
H A Damxintrin.h1 /*===----------
[all...]
H A Damxcomplexintrin.h1 /*===--------- amxcomplexintrin.h - AMXCOMPLEX intrinsics -*- C++ -*---------===
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 *===------------------------------------------------------------------------===
19 __attribute__((__always_inline__, __nodebug__, __target__("amx-complex")))
41 /// FOR m := 0 TO dst.rows - 1
43 /// FOR k := 0 TO (a.colsb / 4) - 1
44 /// FOR n := 0 TO (dst.colsb / 4) - 1
58 /// The destination tile. Max size is 1024 Bytes.
60 /// The 1st source tile. Max size is 1024 Bytes.
62 /// The 2nd source tile. Max size is 1024 Bytes.
[all …]
/llvm-project/clang/test/Driver/
H A Dandroid-link.cpp3 // RUN: %clang -### --target=arm-linux-androideabi %s 2>&1 | \
4 // RUN: FileCheck --check-prefix=MAX-PAGE-SIZE-4KB %s
6 // RUN: %clang --target=aarch64-none-linux-android \
7 // RUN: -### -v %s 2> %t
8 // RUN: FileCheck -check-prefix=GENERIC-ARM < %t %s
10 // RUN: %clang --target=aarch64-none-linux-android \
11 // RUN: -mcpu=cortex-a53 -### -v %s 2> %t
12 // RUN: FileCheck -check-prefix=CORTEX-A53 < %t %s
14 // RUN: %clang --target=aarch64-none-linux-android \
15 // RUN: -mcpu=cortex-a57 -### -v %s 2> %t
[all …]
H A Dx86-malign-branch.c1 /// Test that -malign-branch* and -mbranches-within-32B-boundaries are parsed and converted to MC o…
3 /// Test -malign-branch-boundary=
4 // RUN: %clang -target x86_64 -malign-branch-boundary=16 %s -c -### 2>&1 | FileCheck %s --check-pre…
5 // BOUNDARY: "-mllvm" "-x86-align-branch-boundary=16"
6 // RUN: %clang -target x86_64-unknown-linux -malign-branch-boundary=16 -flto %s -### 2>&1 | FileChe…
7 // BOUNDARY-LTO: "-plugin-opt=-x86-align-branch-boundary=16"
9 // RUN: not %clang -target x86_64 -malign-branch-boundary=8 %s -c -### 2>&1 | FileCheck %s --check-
10 // RUN: not %clang -target x86_64 -malign-branch-boundary=15 %s -c -### 2>&1 | FileCheck %s --check
11 // BOUNDARY-ERR: invalid argument {{.*}} to -malign-branch-boundary=
13 /// Test -malign-branch=
[all …]
/llvm-project/clang-tools-extra/clang-tidy/performance/
H A DEnumSizeCheck.cpp1 //===--- EnumSizeCheck.cpp - clang-tidy -----------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
30 const std::uint64_t Max8 = std::numeric_limits<std::int8_t>::max();
33 const std::uint64_t Max16 = std::numeric_limits<std::int16_t>::max();
36 const std::uint64_t Max32 = std::numeric_limits<std::int32_t>::max();
39 getNewType(std::size_t Size, std::uint64_t Min, std::uint64_t Max) noexcept { in getNewType() argument
41 if (Min <= Min8 && Max <= Max8) { in getNewType()
45 if (Min <= Min16 && Max <= Max16 && Size > sizeof(std::int16_t)) { in getNewType()
49 if (Min <= Min32 && Max <= Max32 && Size > sizeof(std::int32_t)) { in getNewType()
[all …]
/llvm-project/llvm/test/Transforms/SLPVectorizer/
H A Dslp-max-reg-size.ll2 ; RUN: opt < %s -passes=slp-vectorizer -slp-max-vf=8 -slp-min-reg-size=32 -slp-max-reg-size=160 -S …
3 ; RUN: opt < %s -passes=slp-vectorizer -slp-max-vf=4 -slp-min-reg-size=32 -slp-max-reg-size=160 -S …
4 ; RUN: opt < %s -passes=slp-vectorizer -slp-max-vf=2 -slp-min-reg-size=32 -slp-max-reg-size=160 -S …
5 ; RUN: opt < %s -passes=slp-vectorizer -slp-max-vf=8 -slp-min-reg-size=32 -slp-max-reg-size=128 -S …
6 ; RUN: opt < %s -passes=slp-vectorizer -slp-max-vf=4 -slp-min-reg-size=32 -slp-max-reg-size=128 -S …
7 ; RUN: opt < %s -passes=slp-vectorizer -slp-max-vf=2 -slp-min-reg-size=32 -slp-max-reg-size=128 -S …
8 ; RUN: opt < %s -passes=slp-vectorizer -slp-max-vf=8 -slp-min-reg-size=32 -slp-max-reg-size=256 -S …
9 …RUN: opt < %s -passes=slp-vectorizer -slp-max-vf=2 -slp-min-reg-size=128 -slp-max-reg-size=128 -S …
11 ; This test case is checking if max register size (and max VF) is honored when
17 ; CHECK-VF8-160-LABEL: @foo(
[all …]
/llvm-project/compiler-rt/include/fuzzer/
H A DFuzzedDataProvider.h1 //===- FuzzedDataProvider.h - Utility header for fuzz targets ---*- C++ -* ===//
5 // SPDX-License-Identifier: Apache-2.
35 FuzzedDataProvider(const uint8_t * data,size_t size) FuzzedDataProvider() argument
204 ConsumeIntegralInRange(T min,T max) ConsumeIntegralInRange() argument
248 ConsumeFloatingPointInRange(T min,T max) ConsumeFloatingPointInRange() argument
303 PickValueInArray(const T (& array)[size]) PickValueInArray() argument
352 ConsumeBytes(size_t size,size_t num_bytes) ConsumeBytes() argument
[all...]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Duse-std-min-max.cpp1 // RUN: %check_clang_tidy -std=c++11-or-later %s readability-use-std-min-max %t --
[all...]
/llvm-project/libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.discrete/
H A Deval.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
36 std::vector<Frequency> u(static_cast<std::size_t>(d.max()+1)); in tests()
37 assert(u.max_size() > static_cast<unsigned long long>(d.max())); in tests()
41 assert(d.min() <= v && v <= d.max()); in tests()
45 for (unsigned i = 0; i < u.size(); ++i) in tests()
55 std::vector<Frequency> u(static_cast<std::size_t>(d.max()+1)); in tests()
56 assert(u.max_size() > static_cast<unsigned long long>(d.max())); in tests()
[all …]
/llvm-project/llvm/test/Transforms/LoopUnroll/
H A Dfull-unroll-heuristics.ll3 ; 1) -unroll-threshold
4 ; 3) -unroll-percent-dynamic-cost-saved-threshold and
5 ; 2) -unroll-dynamic-cost-savings-discount
7 ; They control loop-unrolling according to the following rules:
8 ; * If size of unrolled loop exceeds the absoulte threshold, we don't unroll
10 ; * If size of unrolled loop is below the '-unroll-threshold', then we'll
12 ; * If a loop size is between these two tresholds, we only do complete unroll
16 ; In this particular test-case, complete unrolling will allow later
17 ; optimizations to remove ~55% of the instructions, the loop body size is 9,
18 ; and unrolled size is 65.
[all …]
/llvm-project/mlir/test/Dialect/Quant/
H A Dparse-any-invalid.mlir1 // RUN: mlir-opt %s -split-input-file -verify-diagnostics
3 // -----
5 // expected-error@+1 {{expected ':'}}
8 // -----
10 // expected-error@+1 {{unbalanced '<' character in pretty dialect name}}
11 !qalias = !quant<any<i8<-4:3:f32>>
13 // -----
15 // expected-error@+1 {{expected '>'}}
16 !qalias = !quant.any<i8<-4:3>f32>
18 // -----
[all …]
/llvm-project/llvm/test/tools/yaml2obj/ELF/
H A Doutput-limit.yaml1 ## Check that yaml2obj limits the output size by default to 10 MB.
3 ## --max-size command line option.
8 ## 0x9FFEC0 = 0xA00000 (10 MB) - sizeof(Elf_Ehdr) - sizeof(Elf_Shdr) * 4.
9 # RUN: yaml2obj %s -DSIZE=0x9FFEC0 --docnum=1 -o /dev/null 2>&1
10 # RUN: not yaml2obj %s -DSIZE=0x9FFEC1 --docnum=1 -o /dev/null 2>&1 | \
11 # RUN: FileCheck %s --check-prefix=ERROR
13 # ERROR: error: the desired output size is greater than permitted. Use the --max-size option to cha…
17 # RUN: yaml2obj %s -DSIZE=0x9FFEC1 --docnum=1 --max-size=0xA00008 -o /dev/null
19 --- !ELF
25 - Name: .section
[all …]
/llvm-project/llvm/test/MC/COFF/
H A Dcv-def-range-align.s1 # RUN: llvm-mc -triple x86_64-windows-msvc %s -filetype=obj -o %t.o
2 # RUN: llvm-pdbutil dump -symbols %t.o | FileCheck %s
9 # CHECK: S_GPROC32_ID {{.*}} `max`
10 # CHECK: S_LOCAL [size = {{.*}}] `a`
12 # CHECK: S_LOCAL [size = {{.*}}] `b`
22 .def max;
26 .globl max # -- Begin function max symbol
28 max: # @max label
31 .cv_file 1 "C:\\src\\llvm-project\\build\\t.c" "44649E6EBC4FC8880991A1AF1F2D2990" 1
33 .seh_proc max
[all …]
/llvm-project/mlir/lib/Dialect/GPU/IR/
H A DInferIntRangeInterfaceImpls.cpp1 //===- InferIntRangeInterfaceImpls.cpp - Integer range impls for gpu -===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
22 static constexpr uint64_t kMaxDim = std::numeric_limits<uint32_t>::max();
23 // Maximum cluster size
41 /// the bound on the maximum size of the dimension that the op is querying.
71 if (bounds.size() < static_cast<uint32_t>(dim)) in getKnownLaunchAttr()
79 auto bounds = func.getOperation()->getAttrOfType<DenseI32ArrayAttr>(attrName); in getKnownLaunchAttr()
82 if (bounds.size() < static_cast<uint32_t>(dim)) in getKnownLaunchAttr()
90 if (auto launch = op->template getParentOfType<LaunchOp>()) { in getKnownLaunchDim()
[all …]
/llvm-project/llvm/lib/Transforms/Utils/
H A DASanStackFrameLayout.cpp1 //===-- ASanStackFrameLayout.cpp - helper for AddressSanitizer ------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
23 // It is tempting to also sort variables by size so that larger variables
38 // The larger the variable Size the larger is the redzone.
39 // The resulting frame size is a multiple of Alignment.
40 static uint64_t VarAndRedzoneSize(uint64_t Size, uint64_t Granularity, in VarAndRedzoneSize() argument
43 if (Size <= 4) Res = 16; in VarAndRedzoneSize()
44 else if (Size <= 16) Res = 32; in VarAndRedzoneSize()
[all …]
/llvm-project/lld/test/ELF/linkerscript/
H A Dpage-size.s2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: ld.lld -z max-page-size=0x4000 %t -o %t2
5 # RUN: llvm-readobj -l %t2 | FileCheck %s
10 # CHECK-NEXT: Offset: 0x0
11 # CHECK-NEXT: VirtualAddress: 0x200000
12 # CHECK-NEXT: PhysicalAddress: 0x200000
13 # CHECK-NEXT: FileSize: 344
14 # CHECK-NEXT: MemSize: 344
15 # CHECK-NEXT: Flags [
16 # CHECK-NEXT: PF_R
[all …]
/llvm-project/compiler-rt/lib/xray/tests/unit/
H A Dsegmented_array_test.cpp39 ASSERT_EQ(data.size(), 2u); in TEST()
47 ASSERT_EQ(data.size(), 1u); in TEST()
60 ASSERT_EQ(data.size(), kMaxElements); in TEST()
81 ASSERT_EQ(data.size(), 1u); in TEST()
83 ASSERT_EQ(data.size(), 0u); in TEST()
101 ASSERT_EQ(data.size(), 1u); in TEST()
115 ASSERT_EQ(data.size(), 1u); in TEST()
122 ASSERT_EQ(I0--, data.end()); in TEST()
125 ASSERT_EQ(I0->First, 1); in TEST()
126 ASSERT_EQ(I0->Second, 1); in TEST()
[all …]
/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/forward_list/
H A DTestDataFormatterGenericForwardList.py28 self.expect("frame variable empty", substrs=[forward_list, "size=0", "{}"])
32 substrs=[forward_list, "size=1", "{", "[0] = 47", "}"],
39 "size=5",
51 "settings show target.max-children-count",
53 substrs=["target.max-children-count (unsigned) = 256"],
61 self.runCmd("settings set target.max
[all...]
/llvm-project/compiler-rt/test/scudo/
H A Dsizes.cpp1 // RUN: %clangxx_scudo %s -lstdc++ -o %t
2 …ts=allocator_may_return_null=0 not %run %t malloc 2>&1 | FileCheck %s --check-prefix=CHECK-max
4 …allocator_may_return_null=0 not %run %t calloc 2>&1 | FileCheck %s --check-prefix=CHECK-calloc
6 …ts=allocator_may_return_null=0 not %run %t new 2>&1 | FileCheck %s --check-prefix=CHECK-max
7 …ts=allocator_may_return_null=1 not %run %t new 2>&1 | FileCheck %s --check-prefix=CHECK-oom
8 …o_opts=allocator_may_return_null=0 not %run %t new-nothrow 2>&1 | FileCheck %s --check-prefix=CHEC…
9 // RUN: %env_scudo_opts=allocator_may_return_null=1 %run %t new-nothrow 2>&1
12 // Tests for various edge cases related to sizes, notably the maximum size the
40 p = malloc(kMaxAllowedMallocSize - kChunkHeaderSize); in main()
44 size_t size = std::numeric_limits<size_t>::max(); in main() local
[all …]
/llvm-project/lld/test/wasm/
H A Ddata-layout.s1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/hello.s -o %t.hello32.o
2 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t32.o
3 # RUN: wasm-ld -m wasm32 -no-gc-sections --export=__data_end --export=__heap_base --allow-undefined…
4 # RUN: obj2yaml %t32.wasm | FileCheck -DPTR=I32 %s
6 # RUN: llvm-mc -filetype=obj -triple=wasm64-unknown-unknown %p/Inputs/hello.s -o %t.hello64.o
7 # RUN: llvm-mc -filetype=obj -triple=wasm64-unknown-unknown %s -o %t64.o
8 # RUN: wasm-ld -m wasm64 -no-gc-sections --export=__data_end --export=__heap_base --allow-undefined…
9 # RUN: obj2yaml %t64.wasm | FileCheck --check-prefixes CHECK,CHK64 -DPTR=I64 %s
17 .size foo, 4
26 .size aligned_bar, 4
[all …]

12345678910>>...46