/llvm-project/llvm/test/tools/llvm-reduce/ |
H A D | operands-skip.ll | 2 ; RUN: FileCheck %s --input-file %t --check-prefixes=REDUCED 5 ; REDUCED: store i32 43, ptr %imm, align 4 8 ; REDUCED: store i32 44, ptr %phi, align 4 11 ; REDUCED: store i32 45, ptr %val, align 4 14 ; REDUCED: store i32 46, ptr @Global, align 4 17 ; REDUCED: store i32 47, ptr %arg2, align 4 20 ; REDUCED: store i32 48, ptr %arg1, align 4 23 ; REDUCED: store i32 49, ptr null, align 4 25 ; REDUCED: store i32 50, ptr %arg1, align 4 26 ; REDUCED [all...] |
H A D | operands-to-args.ll | 2 ; RUN: FileCheck %s --input-file %t --check-prefixes=REDUCED,INTERESTING 4 ; REDUCED-LABEL: define void @func(i32 %k, ptr %Local, ptr %Global) { 12 ; REDUCED: store i32 21, ptr %Local, align 4 13 ; REDUCED: store i32 21, ptr %Global, align 4 14 ; REDUCED: store i32 0, ptr %Local, align 4 15 ; REDUCED: store i32 0, ptr %Global, align 4 16 ; REDUCED: store float 0.000000e+00, ptr %Global, align 4 23 ; REDUCED: call void @func(i32 21, ptr null, ptr null)
|
H A D | file-output-type.test | 6 # A .ll input file should default to text output in reduced.ll 8 # RUN: llvm-as -disable-output reduced.ll 11 # A .bc input file should default to bitcode output, in reduced.bc (with bitcode intermediates) 12 # RUN: rm -f reduced.ll reduced.bc 14 # RUN: llvm-dis -disable-output reduced.bc 23 # RUN: rm -f reduced.ll reduced.bc
|
H A D | bitcode-uselistorder.ll | 7 ; RUN: --delta-passes=instructions -o %t.reduced.bc \ 13 ; RUN: llvm-dis --preserve-ll-uselistorder -o %t.reduced.ll %t.reduced.bc 15 ; RUN: FileCheck -check-prefix=RESULT %s < %t.reduced.ll
|
H A D | remove-metadata-args.ll | 2 ; RUN: FileCheck %s --input-file %t --check-prefix=REDUCED 4 ; All exciting stuff must remain in the reduced file. 11 ; REDUCED-NOT: Boring{{.*}} !md !0 12 ; REDUCED-NOT: !md !0 {{.*}}Boring
|
/llvm-project/clang/test/Modules/ |
H A D | function-transitive-change.cppm | 1 // Test that, in C++20 modules reduced BMI, the implementation detail changes 9 // RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-reduced-module-interface -o %t/a.pcm 10 // RUN: %clang_cc1 -std=c++20 %t/a.v1.cppm -emit-reduced-module-interface -o %t/a.v1.pcm 16 // RUN: %clang_cc1 -std=c++20 %t/b.cppm -emit-reduced-module-interface -fmodule-file=a=%t/a.pcm \ 18 // RUN: %clang_cc1 -std=c++20 %t/b.cppm -emit-reduced-module-interface -fmodule-file=a=%t/a.v1.pcm \ 23 // RUN: %clang_cc1 -std=c++20 %t/M-A.cppm -emit-reduced-module-interface -o %t/M-A.pcm 24 // RUN: %clang_cc1 -std=c++20 %t/M-B.cppm -emit-reduced-module-interface -o %t/M-B.pcm 25 // RUN: %clang_cc1 -std=c++20 %t/M.cppm -emit-reduced-module-interface -o %t/M.pcm \ 28 // RUN: %clang_cc1 -std=c++20 %t/N.cppm -emit-reduced-module-interface -o %t/N.pcm \ 34 // RUN: %clang_cc1 -std=c++20 %t/M-A.v1.cppm -emit-reduced-module-interface -o %t/M-A.v1.pcm [all …]
|
H A D | modules-reduced-bmi.cppm | 5 // RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-reduced-module-interface -o %t/a.reduced.pcm 6 // RUN: %clang_cc1 -std=c++20 %t/a.cppm -fexperimental-modules-reduced-bmi -fmodule-output=%t/a.pcm… 9 // Test that the generated BMI from `-fexperimental-modules-reduced-bmi -fmodule-output=` is same w… 10 // `-emit-reduced-module-interface`. 11 // RUN: diff %t/a.reduced.pcm %t/a.pcm 17 // RUN: %clang_cc1 -std=c++20 %t/a.cppm -fexperimental-modules-reduced-bmi -fmodule-output=%t/a.pcm… 19 // RUN: diff %t/a.reduced.pcm %t/a.pcm
|
H A D | no-transitive-type-change.cppm | 7 // RUN: %clang_cc1 -std=c++20 %t/m-partA.cppm -emit-reduced-module-interface -o %t/m-partA.pcm 8 // RUN: %clang_cc1 -std=c++20 %t/m-partA.v1.cppm -emit-reduced-module-interface -o \ 10 // RUN: %clang_cc1 -std=c++20 %t/m-partB.cppm -emit-reduced-module-interface -o %t/m-partB.pcm 11 // RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-reduced-module-interface -o %t/m.pcm \ 13 // RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-reduced-module-interface -o %t/m.v1.pcm \ 16 // RUN: %clang_cc1 -std=c++20 %t/useBOnly.cppm -emit-reduced-module-interface -o %t/useBOnly.pcm \ 19 // RUN: %clang_cc1 -std=c++20 %t/useBOnly.cppm -emit-reduced-module-interface -o %t/useBOnly.v1.pcm… 26 // RUN: %clang_cc1 -std=c++20 %t/useAOnly.cppm -emit-reduced-module-interface -o %t/useAOnly.pcm \ 29 // RUN: %clang_cc1 -std=c++20 %t/useAOnly.cppm -emit-reduced-module-interface -o %t/useAOnly.v1.pcm…
|
H A D | no-transitive-identifier-change.cppm | 7 // RUN: %clang_cc1 -std=c++20 %t/m-partA.cppm -emit-reduced-module-interface -o %t/m-partA.pcm 8 // RUN: %clang_cc1 -std=c++20 %t/m-partA.v1.cppm -emit-reduced-module-interface -o \ 10 // RUN: %clang_cc1 -std=c++20 %t/m-partB.cppm -emit-reduced-module-interface -o %t/m-partB.pcm 11 // RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-reduced-module-interface -o %t/m.pcm \ 13 // RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-reduced-module-interface -o %t/m.v1.pcm \ 16 // RUN: %clang_cc1 -std=c++20 %t/useBOnly.cppm -emit-reduced-module-interface -o %t/useBOnly.pcm \ 19 // RUN: %clang_cc1 -std=c++20 %t/useBOnly.cppm -emit-reduced-module-interface -o %t/useBOnly.v1.pcm… 26 // RUN: %clang_cc1 -std=c++20 %t/useAOnly.cppm -emit-reduced-module-interface -o %t/useAOnly.pcm \ 29 // RUN: %clang_cc1 -std=c++20 %t/useAOnly.cppm -emit-reduced-module-interface -o %t/useAOnly.v1.pcm…
|
H A D | cxx20-import-diagnostics-b.cpp | 25 // Test again with reduced BMI. 30 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/a.cpp -o %t/a.pcm 32 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/c.cpp \ 35 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/d.cpp \ 38 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/e.cpp \ 41 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/a-part.cpp \ 44 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/f.cpp \ 47 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/g.cpp \
|
H A D | transitive-adl-change.cppm | 6 // RUN: %clang_cc1 -std=c++20 %t/Common.cppm -emit-reduced-module-interface -o %t/Common.pcm 8 // RUN: %clang_cc1 -std=c++20 %t/m-partA.cppm -emit-reduced-module-interface -o %t/m-partA.pcm \ 10 // RUN: %clang_cc1 -std=c++20 %t/m-partA.v1.cppm -emit-reduced-module-interface -o \ 12 // RUN: %clang_cc1 -std=c++20 %t/m-partB.cppm -emit-reduced-module-interface -o %t/m-partB.pcm 13 // RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-reduced-module-interface -o %t/m.pcm \ 16 // RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-reduced-module-interface -o %t/m.v1.pcm \ 21 // RUN: %clang_cc1 -std=c++20 %t/B.cppm -emit-reduced-module-interface -o %t/B.pcm \ 24 // RUN: %clang_cc1 -std=c++20 %t/B.cppm -emit-reduced-module-interface -o %t/B.v1.pcm \ 43 // RUN: %clang_cc1 -std=c++20 %t/C.cppm -emit-reduced-module-interface -o %t/C.pcm \ 46 // RUN: %clang_cc1 -std=c++20 %t/C.cppm -emit-reduced-module-interface -o %t/C.v1.pcm \
|
H A D | no-transitive-decls-change.cppm | 7 // RUN: %clang_cc1 -std=c++20 %t/m-partA.cppm -emit-reduced-module-interface -o %t/m-partA.pcm 8 // RUN: %clang_cc1 -std=c++20 %t/m-partA.v1.cppm -emit-reduced-module-interface -o \ 10 // RUN: %clang_cc1 -std=c++20 %t/m-partB.cppm -emit-reduced-module-interface -o %t/m-partB.pcm 11 // RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-reduced-module-interface -o %t/m.pcm \ 13 // RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-reduced-module-interface -o %t/m.v1.pcm \ 16 // RUN: %clang_cc1 -std=c++20 %t/useBOnly.cppm -emit-reduced-module-interface -o %t/useBOnly.pcm \ 19 // RUN: %clang_cc1 -std=c++20 %t/useBOnly.cppm -emit-reduced-module-interface -o %t/useBOnly.v1.pcm…
|
H A D | pr93859.cppm | 1 // Reduced from https://github.com/llvm/llvm-project/issues/93859 7 // RUN: %clang_cc1 -std=c++20 %t/reduced_std.cppm -emit-reduced-module-interface -o %t/reduced_std.… 8 // RUN: %clang_cc1 -std=c++20 %t/Misc.cppm -emit-reduced-module-interface -o %t/Misc.pcm \ 10 // RUN: %clang_cc1 -std=c++20 %t/Instance.cppm -emit-reduced-module-interface -o %t/Instance.pcm \ 12 // RUN: %clang_cc1 -std=c++20 %t/Device.cppm -emit-reduced-module-interface -o %t/Device.pcm \ 14 // RUN: %clang_cc1 -std=c++20 %t/Overlay.cppm -emit-reduced-module-interface -o %t/Overlay.pcm \ 17 // RUN: -fexperimental-modules-reduced-bmi -fmodule-output=%t/App.pcm \
|
H A D | no-transitive-decl-change-2.cppm | 1 // Test that adding a new unused decl within reduced BMI may not produce a transitive change. 6 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/A.cppm -o %t/A.pcm 7 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/B.cppm -o %t/B.pcm \ 10 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/A.v1.cppm -o %t/A.v1.pcm 11 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/B.cppm -o %t/B.v1.pcm \
|
H A D | no-transitive-identifier-change-2.cppm | 1 // Test that adding a new identifier within reduced BMI may not produce a transitive change. 6 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/A.cppm -o %t/A.pcm 7 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/B.cppm -o %t/B.pcm \ 10 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/A.v1.cppm -o %t/A.v1.pcm 11 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/B.cppm -o %t/B.v1.pcm \
|
H A D | no-transitive-source-location-change.cppm | 7 // RUN: %clang_cc1 -std=c++20 %t/A.cppm -emit-reduced-module-interface -o %t/A.pcm 8 // RUN: %clang_cc1 -std=c++20 %t/A.v1.cppm -emit-reduced-module-interface -o %t/A.v1.pcm 14 // RUN: %clang_cc1 -std=c++20 %t/B.cppm -emit-reduced-module-interface -fmodule-file=A=%t/A.pcm \ 16 // RUN: %clang_cc1 -std=c++20 %t/B.cppm -emit-reduced-module-interface -fmodule-file=A=%t/A.v1.pcm \ 21 // RUN: %clang_cc1 -std=c++20 %t/C.cppm -emit-reduced-module-interface -fmodule-file=A=%t/A.pcm \ 23 // RUN: %clang_cc1 -std=c++20 %t/C.cppm -emit-reduced-module-interface -fmodule-file=A=%t/A.v1.pcm \
|
H A D | reduced-bmi-size.cppm | 1 // Ensure that the size of the reduced BMI is not larger than the full BMI 11 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %s -o %t/a.reduced.pcm 13 // RUN: %python %S/compare-file-size.py %t/a.pcm %t/a.reduced.pcm
|
H A D | merge-concepts-cxx-modules.cpp | 11 // Test again with reduced BMI. 16 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/same_as.cppm -o %t/same_as.pcm 17 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface -fprebuilt-module-path=%t %t/concepts.… 18 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface -fprebuilt-module-path=%t %t/format.cp… 19 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/conflicting.cppm -o %t/conflicting.…
|
H A D | cxx20-10-3-ex1.cpp | 17 // Test again with reduced BMI. 19 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/std10-3-ex1-tu1.cpp \ 22 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/std10-3-ex1-tu2.cpp \ 25 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/std10-3-ex1-tu3.cpp \ 28 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/std10-3-ex1-tu4.cpp \
|
/llvm-project/clang/test/Driver/ |
H A D | module-fgen-reduced-bmi.cppm | 12 // RUN: -fexperimental-modules-reduced-bmi -c -o Hello.o -### 2>&1 | FileCheck Hello.cppm 15 // RUN: -fexperimental-modules-reduced-bmi -c -o Hello.o -### 2>&1 | \ 19 // RUN: -fexperimental-modules-reduced-bmi -c -### 2>&1 | \ 23 // RUN: -fexperimental-modules-reduced-bmi -c -o AnotherName.o -### 2>&1 | \ 26 // RUN: %clang -std=c++20 Hello.cppm --precompile -fexperimental-modules-reduced-bmi \ 30 // RUN: %clang -std=c++20 Hello.cc -fexperimental-modules-reduced-bmi -Wall -Werror \ 34 // RUN: -fmodules-reduced-bmi -c -o Hello.o -### 2>&1 | FileCheck Hello.cppm 37 // RUN: -fmodules-reduced-bmi -c -o Hello.o -### 2>&1 | \ 41 // RUN: -fmodules-reduced-bmi -c -### 2>&1 | \ 45 // RUN: -fmodules-reduced [all...] |
/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombineInternal.h | 25 // instructions and for each eligible graph, it will create a reduced bit-width 30 // 3. Can be evaluated into type with reduced legal bit-width (or Trunc type). 33 // new reduced type chosen in (3). 70 /// The reduced value generated to replace the old instruction. 102 /// Check if it is eligible to be reduced to a smaller type. 104 /// \return the scalar version of the new type to be used for the reduced 106 /// eligible to be reduced. 121 /// Given a \p V value and a \p SclTy scalar type return the generated reduced in ComputeNumSignBits() 124 /// \param V value to be reduced. 126 /// \return the new reduced valu [all...] |
/llvm-project/llvm/test/DebugInfo/X86/ |
H A D | asm-macro-line-number.s | 3 # 1 "reduced.S" 5 # 1 "reduced.S" 2 17 # 7 "reduced.S" 21 # CHECK: .file 1 "reduced.S" 27 # 42 "reduced.S"
|
/llvm-project/lld/test/ELF/ |
H A D | compressed-debug-conflict.s | 16 # ERROR-NEXT: >>> defined at reduced.c:2 ({{[/\\]}}tmp{{[/\\]}}reduced.c:2) 18 # ERROR-NEXT: >>> defined at reduced.c:2 ({{[/\\]}}tmp{{[/\\]}}reduced.c:2) 22 .file "reduced.c" 25 .file 1 "/tmp" "reduced.c"
|
/llvm-project/llvm/tools/llvm-reduce/deltas/ |
H A D | ReduceOperandsSkip.cpp | 25 /// reduced". 61 /// Return a reduction priority for @p V. A higher values means "more reduced". 100 // Return whether @p LHS is "more reduced" that @p RHS. That is, whether in opportunities() 101 // @p RHS should be preferred over @p LHS in a reduced output. This is a in opportunities() 104 // A value is not more reduced than itself. in opportunities() 113 // LHS is more reduced if it is defined further up the dominance tree. In a in opportunities() 122 // "more reduced" choice that skips over more instructions. in opportunities() 173 // Only consider candidates that are "more reduced" than the original in opportunities() 204 // reduced. Candidates with less reductive power can be interpreted as an in extractOperandsFromModule() 205 // intermediate step that is immediately replaced with the more reduced in extractOperandsFromModule()
|
/llvm-project/mlir/test/Conversion/GPUToSPIRV/ |
H A D | reductions.mlir | 14 %reduced = gpu.all_reduce add %arg uniform {} : (f32) -> (f32) 34 %reduced = gpu.all_reduce add %arg {} : (f32) -> (f32) 54 %reduced = gpu.all_reduce add %arg uniform {} : (i32) -> (i32) 74 %reduced = gpu.all_reduce add %arg {} : (i32) -> (i32) 94 %reduced = gpu.subgroup_reduce add %arg uniform : (f32) -> (f32) 114 %reduced = gpu.subgroup_reduce add %arg : (f32) -> (f32) 134 %reduced = gpu.subgroup_reduce add %arg uniform : (i32) -> (i32) 154 %reduced = gpu.subgroup_reduce add %arg : (i32) -> (i32) 174 %reduced = gpu.all_reduce mul %arg uniform {} : (f32) -> (f32) 194 %reduced [all...] |