Skip to content

[stable/20211026] Cherry-pick missing commits #3627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 81 commits into from
Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
f722dd2
[lldb] Re-enable TestBitfields.py
JDevlieghere Aug 17, 2021
a465995
[lldb] Re-enable TestDataFormatterObjCNSError.py
JDevlieghere Aug 17, 2021
bed1666
Update test to allow for Swift.String instead of just String
adrian-prantl Aug 27, 2021
7440ec9
Run coro::salavageDebugInfo on dbg.declares in entry function
adrian-prantl Sep 2, 2021
3d87d8a
[lldb] Support diagnostic options in Swift REPL
poya Aug 27, 2021
5c12c8f
Target: explicitly handle `.swift1_autolink_entries`
compnerd Sep 11, 2021
ccd0749
[lldb] Name UnsafePointer's single child 'pointee'
kastiglione Sep 16, 2021
f9cbdd3
Disable assertion
adrian-prantl Sep 21, 2021
0df7953
[lldb] Temporarily disable the reproducer tests
JDevlieghere Sep 22, 2021
e03228f
[lldb] Remove unused folder source/Plugins/Process/Darwin
bulbazord Sep 23, 2021
725dd00
[lldb] Skip failing tests on Linux
JDevlieghere Sep 28, 2021
a346227
[lldb] Toggle the reproducer default in the driver
JDevlieghere Sep 29, 2021
bdf5e88
Update CMakeLists.txt
compnerd Oct 1, 2021
26bfd5e
Support: unlock Windows API support, switch to Windows 10 RS1+ APIs
compnerd Oct 2, 2021
cb413d9
Disable lifetime.start sinking for ABI::Async and ABI::Retcon
aschwaighofer Oct 1, 2021
609fe52
Don't use lifetime.start based alloca localization for ABI.Async/ABI.…
aschwaighofer Sep 30, 2021
367132d
Reland "[lldb] Use CompileUnit::ResolveSymbolContext in SymbolFileDWARF"
medismailben Oct 4, 2021
bcb7c55
[lldb] Pass extra clang args by const-ref (NFC)
kastiglione Oct 4, 2021
0a818e0
Unxfail test.
adrian-prantl Oct 4, 2021
fa964fc
[lldb] Add new Swift log channel
kastiglione Oct 5, 2021
058b561
[lldb] Log SwiftASTContext configuration to Swift health
kastiglione Oct 6, 2021
8f6e5eb
[lldb] Remove superfluous SDKTypeMinVersion type (NFC)
kastiglione Oct 5, 2021
7d89e95
wrap in LLDB_ENABLE_SWIFT
kastiglione Oct 6, 2021
831e047
reuse LOG_PRINTF_IMPL
kastiglione Oct 6, 2021
7f6b1cf
missed a LLDB_ENABLE_SWIFT
kastiglione Oct 6, 2021
ccd4eb5
Revert "[modules] Fix miscompilation when using two RecordDecl defini…
etcwilde Oct 7, 2021
9222d39
[lldb] Auto-enable swift health logging to memory buffer
kastiglione Oct 13, 2021
1d44e96
[lldb] Add basic healthcheck command
kastiglione Oct 14, 2021
c4517d8
wrap in LLDB_ENABLE_SWIFT
kastiglione Oct 14, 2021
695161f
Merge pull request #2646 from apple/lldb-Add-work-around-handling-of-…
kastiglione Mar 10, 2021
9128cc6
Revert "Work around outdated system header files on Amazon Linux"
adrian-prantl Nov 17, 2021
9135222
Work around outdated system header files on Amazon Linux
adrian-prantl Oct 12, 2021
ec70ebc
[lldb] Add call to registerClangImporterRequestFunctions in SwiftASTC…
kastiglione Oct 15, 2021
661b753
[lldb] Rename 'healthcheck' to 'swift-healthcheck'
Teemperor Oct 15, 2021
bda7c65
[lldb] Duplicate SwiftASTContext::CreateInstance errors to swift heal…
kastiglione Oct 15, 2021
683d2ae
disable test on linux
adrian-prantl Oct 20, 2021
1ee5720
[lldb] Remove swiftc -enable-experimental-concurrency from tests
kastiglione Oct 21, 2021
9cc5b1b
[lldb/test] Remove XFAIL on TestSwiftStepping.py
medismailben Oct 25, 2021
ae10b05
[lldb] Skip tests for target var without a proc on both arm64 & arm64e
JDevlieghere Oct 26, 2021
cc2cbe7
[lldb] Move reference related functions to TypeSystemSwift
augusto2112 Oct 26, 2021
d081faa
[lldb] Implement GetPointeeType
augusto2112 Oct 26, 2021
769c8c8
[lldb] Add message to functions not worth implementing in tss-typeref
augusto2112 Oct 25, 2021
d6c591b
[lldb] Move DumpSummary implementation to TypeSystemSwift
augusto2112 Oct 27, 2021
2c783f9
[lldb] Fixup code addresses in the Objective-C language runtime
JDevlieghere Oct 27, 2021
fb9e7d7
Fix Stable lldb Release Builds
Oct 27, 2021
2ecd712
[lldb] The os and version are not separate components in the triple
JDevlieghere Oct 27, 2021
d3ed690
build: optionalize some clang resource headers
compnerd Oct 31, 2021
f8d9378
[lldb] Use reflection metadata to find the value type of an existential
augusto2112 Nov 5, 2021
194f17e
[lldb] Use std::string instead of llvm::Twine in GDBRemoteCommunicati…
JDevlieghere Nov 5, 2021
162c78a
[lldb] Remove nested switches from ARMGetSupportedArchitectureAtIndex…
JDevlieghere Nov 6, 2021
e6da1d2
[lldb] Remove 'result' variable which is set but not used (NFC)
JDevlieghere Nov 6, 2021
039abcc
[lldb] Fix C2360: initialization of 'identifier' is skipped by 'case'…
JDevlieghere Nov 6, 2021
b250c2d
Support looking up absolute symbols
adrian-prantl Nov 9, 2021
87314fe
Add a requires line to test.
adrian-prantl Nov 9, 2021
e6e52ba
Use yaml2obj instead of relying on invoking the Darwin system assembler.
adrian-prantl Nov 9, 2021
d9f18b0
headers: optionalise some generated resource headers
compnerd Nov 9, 2021
6720937
[ARM/AArch64] Move REQUIRES after update_cc_test_checks line. NFC
davemgreen Nov 13, 2021
fe22425
[lldb] Fix that the embedded Python REPL crashes if it receives SIGINT
Teemperor Nov 12, 2021
a3bf28c
reland: [VFS] Use original path when falling back to external FS
keith Nov 13, 2021
2c207f7
[lldb] Fix Scripted ProcessLaunchInfo Argument nullptr deref
medismailben Nov 10, 2021
2294b99
[lldb/bindings] Change ScriptedThread initializer parameters
medismailben Oct 19, 2021
5661dc7
[lldb/test] Update TestScriptedProcess to use skinny corefiles
medismailben Nov 10, 2021
fad59d9
[lldb/test] Skip TestScriptedProcess when using system's debugserver …
medismailben Nov 10, 2021
9590b45
[lldb/Plugins] Refactor ScriptedThread register context creation
medismailben Nov 10, 2021
020c4d3
[lldb] Improve error reporting in `lang objc tagged-pointer info`
JDevlieghere Nov 2, 2021
dbde9d6
[lldb] Update tagged pointer command output and test.
JDevlieghere Nov 3, 2021
11bc936
[lldb] Improve 'lang objc tagged-pointer info' command
JDevlieghere Nov 5, 2021
618c49f
[lldb] Remove failures case from TestTaggedPointerCmd
JDevlieghere Nov 7, 2021
45dbf8e
Windows: support `DoLoadImage`
compnerd Nov 29, 2021
a31981a
[lldb] Remove unused GetAllocationStrategy function
augusto2112 Nov 29, 2021
32795de
Update PlatformWindows.cpp
compnerd Nov 29, 2021
fcb427b
[lldb] Don't set the OS for ARMGetSupportedArchitectureAtIndex
JDevlieghere Nov 6, 2021
9ba5c17
[lldb] Consider bound types when deciding if the overall type is dynamic
augusto2112 Nov 30, 2021
8931755
Add support for 32-bit reflection contexts.
adrian-prantl Nov 30, 2021
d1c1fe1
[lldb] Desugar unlimited levels when calculating type name
augusto2112 Nov 30, 2021
ae43a37
[lldb] Fix desugaring of dicts on TypeSystemSwiftTypeRef
augusto2112 Nov 30, 2021
17e233f
[lldb] Implement TypeSystemSwiftTypeRef::GetFullyUnqualifiedType
augusto2112 Dec 1, 2021
e40d882
[lldb] Implement GetFormat in terms of GetTypeInfo
augusto2112 Dec 1, 2021
0ee3988
[lldb] Use Desugar function in GetCanonicalNode and remove duped code
augusto2112 Dec 1, 2021
0b38d7a
Add missing default specifier
adrian-prantl Dec 1, 2021
257c95b
Simplify logic to identify dyld_sim in Simulator debugging on macos
jasonmolenda Dec 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion clang/include/clang/AST/DeclContextInternals.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ class StoredDeclsList {

// FIXME: Move the assert before the single decl case when we fix the
// duplication coming from the ASTReader reading builtin types.
assert(!llvm::is_contained(getLookupResult(), D) && "Already exists!");

// SWIFT: FIXME^2: This assertion causes problems in Swift's ClangImporter.
// SWIFT: We should probably set its ASTContext to Objective-C++ mode to avoid it.
// SWIFT: assert(!llvm::is_contained(getLookupResult(), D) && "Already exists!");

// Determine if this declaration is actually a redeclaration.
for (DeclListNode *N = getAsList(); /*return in loop*/;
N = N->Rest.dyn_cast<DeclListNode *>()) {
Expand Down
4 changes: 0 additions & 4 deletions clang/include/clang/Serialization/ASTReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -1155,10 +1155,6 @@ class ASTReader
/// definitions. Only populated when using modules in C++.
llvm::DenseMap<EnumDecl *, EnumDecl *> EnumDefinitions;

/// A mapping from canonical declarations of records to their canonical
/// definitions. Doesn't cover CXXRecordDecl.
llvm::DenseMap<RecordDecl *, RecordDecl *> RecordDefinitions;

/// When reading a Stmt tree, Stmt operands are placed in this stack.
SmallVector<Stmt *, 16> StmtStack;

Expand Down
32 changes: 18 additions & 14 deletions clang/lib/Headers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,20 +207,24 @@ foreach( f ${files} ${cuda_wrapper_files} ${ppc_wrapper_files} ${openmp_wrapper_
endforeach( f )

# Generate header files and copy them to the build directory
# Generate arm_neon.h
clang_generate_header(-gen-arm-neon arm_neon.td arm_neon.h)
# Generate arm_fp16.h
clang_generate_header(-gen-arm-fp16 arm_fp16.td arm_fp16.h)
# Generate arm_sve.h
clang_generate_header(-gen-arm-sve-header arm_sve.td arm_sve.h)
# Generate arm_bf16.h
clang_generate_header(-gen-arm-bf16 arm_bf16.td arm_bf16.h)
# Generate arm_mve.h
clang_generate_header(-gen-arm-mve-header arm_mve.td arm_mve.h)
# Generate arm_cde.h
clang_generate_header(-gen-arm-cde-header arm_cde.td arm_cde.h)
# Generate riscv_vector.h
clang_generate_header(-gen-riscv-vector-header riscv_vector.td riscv_vector.h)
if(ARM IN_LIST LLVM_TARGETS_TO_BUILD OR AArch64 IN_LIST LLVM_TARGETS_TO_BUILD)
# Generate arm_neon.h
clang_generate_header(-gen-arm-neon arm_neon.td arm_neon.h)
# Generate arm_fp16.h
clang_generate_header(-gen-arm-fp16 arm_fp16.td arm_fp16.h)
# Generate arm_sve.h
clang_generate_header(-gen-arm-sve-header arm_sve.td arm_sve.h)
# Generate arm_bf16.h
clang_generate_header(-gen-arm-bf16 arm_bf16.td arm_bf16.h)
# Generate arm_mve.h
clang_generate_header(-gen-arm-mve-header arm_mve.td arm_mve.h)
# Generate arm_cde.h
clang_generate_header(-gen-arm-cde-header arm_cde.td arm_cde.h)
endif()
if(RISCV IN_LIST LLVM_TARGETS_TO_BUILD)
# Generate riscv_vector.h
clang_generate_header(-gen-riscv-vector-header riscv_vector.td riscv_vector.h)
endif()

add_custom_target(clang-resource-headers ALL DEPENDS ${out_files})
set_target_properties(clang-resource-headers PROPERTIES
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Serialization/ASTCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ bool serialization::needsAnonymousDeclarationNumber(const NamedDecl *D) {
// Otherwise, we only care about anonymous class members / block-scope decls.
// FIXME: We need to handle lambdas and blocks within inline / templated
// variables too.
if (D->getDeclName() || !isa<RecordDecl>(D->getLexicalDeclContext()))
if (D->getDeclName() || !isa<CXXRecordDecl>(D->getLexicalDeclContext()))
return false;
return isa<TagDecl>(D) || isa<FieldDecl>(D);
}
38 changes: 2 additions & 36 deletions clang/lib/Serialization/ASTReaderDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ namespace clang {
RedeclarableResult VisitTagDecl(TagDecl *TD);
void VisitEnumDecl(EnumDecl *ED);
RedeclarableResult VisitRecordDeclImpl(RecordDecl *RD);
void VisitRecordDecl(RecordDecl *RD);
void VisitRecordDecl(RecordDecl *RD) { VisitRecordDeclImpl(RD); }
RedeclarableResult VisitCXXRecordDeclImpl(CXXRecordDecl *D);
void VisitCXXRecordDecl(CXXRecordDecl *D) { VisitCXXRecordDeclImpl(D); }
RedeclarableResult VisitClassTemplateSpecializationDeclImpl(
Expand Down Expand Up @@ -808,34 +808,6 @@ ASTDeclReader::VisitRecordDeclImpl(RecordDecl *RD) {
return Redecl;
}

void ASTDeclReader::VisitRecordDecl(RecordDecl *RD) {
VisitRecordDeclImpl(RD);

// Maintain the invariant of a redeclaration chain containing only
// a single definition.
if (RD->isCompleteDefinition()) {
RecordDecl *Canon = static_cast<RecordDecl *>(RD->getCanonicalDecl());
RecordDecl *&OldDef = Reader.RecordDefinitions[Canon];
if (!OldDef) {
// This is the first time we've seen an imported definition. Look for a
// local definition before deciding that we are the first definition.
for (auto *D : merged_redecls(Canon)) {
if (!D->isFromASTFile() && D->isCompleteDefinition()) {
OldDef = D;
break;
}
}
}
if (OldDef) {
Reader.MergedDeclContexts.insert(std::make_pair(RD, OldDef));
RD->setCompleteDefinition(false);
Reader.mergeDefinitionVisibility(OldDef, RD);
} else {
OldDef = RD;
}
}
}

void ASTDeclReader::VisitValueDecl(ValueDecl *VD) {
VisitNamedDecl(VD);
// For function declarations, defer reading the type in case the function has
Expand Down Expand Up @@ -2689,7 +2661,7 @@ static bool allowODRLikeMergeInC(NamedDecl *ND) {
if (!ND)
return false;
// TODO: implement merge for other necessary decls.
if (isa<EnumConstantDecl, FieldDecl, IndirectFieldDecl>(ND))
if (isa<EnumConstantDecl>(ND))
return true;
return false;
}
Expand Down Expand Up @@ -3361,9 +3333,6 @@ DeclContext *ASTDeclReader::getPrimaryContextForMerging(ASTReader &Reader,
return DD->Definition;
}

if (auto *RD = dyn_cast<RecordDecl>(DC))
return RD->getDefinition();

if (auto *ED = dyn_cast<EnumDecl>(DC))
return ED->getASTContext().getLangOpts().CPlusPlus? ED->getDefinition()
: nullptr;
Expand Down Expand Up @@ -3450,9 +3419,6 @@ ASTDeclReader::getPrimaryDCForAnonymousDecl(DeclContext *LexicalDC) {
if (auto *MD = dyn_cast<ObjCMethodDecl>(D))
if (MD->isThisDeclarationADefinition())
return MD;
if (auto *RD = dyn_cast<RecordDecl>(D))
if (RD->isThisDeclarationADefinition())
return RD;
}

// No merged definition yet.
Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/RISCV/riscv-inline-asm-rvv.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// REQUIRES: riscv-registered-target

// RUN: %clang_cc1 -triple riscv32 -target-feature +experimental-v \
// RUN: -O2 -emit-llvm %s -o - \
// RUN: | FileCheck %s
Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-bf16-dotprod-intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// RUN: %clang_cc1 -triple aarch64-arm-none-eabi -target-feature +neon -target-feature +bf16 \
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager %s -o - | opt -S -mem2reg | FileCheck %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

// CHECK-LABEL: @test_vbfdot_f32(
Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-bf16-getset-intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// RUN: %clang_cc1 -triple aarch64-arm-none-eabi -target-feature +neon -target-feature +bf16 \
// RUN: -disable-O0-optnone -emit-llvm -fno-legacy-pass-manager %s -o - | opt -S -mem2reg | FileCheck %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

// CHECK-LABEL: @test_vcreate_bf16(
Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-bf16-lane-intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// RUN: %clang_cc1 -triple aarch64_be-arm-none-eabi -target-feature +neon -target-feature +bf16 \
// RUN: -disable-O0-optnone -emit-llvm %s -fno-legacy-pass-manager -o - | opt -S -mem2reg | FileCheck --check-prefix=CHECK-BE %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

// CHECK-LE-LABEL: @test_vcopy_lane_bf16_v1(
Expand Down
4 changes: 2 additions & 2 deletions clang/test/CodeGen/aarch64-fix-cortex-a53-835769.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// REQUIRES: aarch64-registered-target

// RUN: %clang -O3 -target aarch64-linux-eabi %s -S -o- \
// RUN: | FileCheck --check-prefix=CHECK-NO --check-prefix=CHECK %s
// RUN: %clang -O3 -target aarch64-linux-eabi -mfix-cortex-a53-835769 %s -S -o- 2>&1 \
Expand All @@ -14,6 +12,8 @@
// RUN: %clang -O3 -target aarch64-android-eabi -mno-fix-cortex-a53-835769 %s -S -o- \
// RUN: | FileCheck --check-prefix=CHECK-NO --check-prefix=CHECK %s

// REQUIRES: aarch64-registered-target

typedef long int64_t;

int64_t f_load_madd_64(int64_t a, int64_t b, int64_t *c) {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-2velem.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-3v.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-across.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
// RUN: -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
3 changes: 1 addition & 2 deletions clang/test/CodeGen/aarch64-neon-extract.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
// RUN: -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target

#include <arm_neon.h>

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-fcvt-intrinsics.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
// RUN: -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-fma.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon -S -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: | opt -S -mem2reg \
// RUN: | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-neon-ldst-one.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// RUN: -disable-O0-optnone -fallow-half-arguments-and-returns -emit-llvm -o - %s \
// RUN: | opt -S -mem2reg | FileCheck %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

// CHECK-LABEL: define{{.*}} <16 x i8> @test_vld1q_dup_u8(i8* %a) #0 {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: -disable-O0-optnone -fallow-half-arguments-and-returns -emit-llvm -o - %s \
// RUN: | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
3 changes: 2 additions & 1 deletion clang/test/CodeGen/aarch64-neon-perm.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
// RUN: -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

// CHECK-LABEL: @test_vuzp1_s8(
Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-neon-range-checks.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -target-feature +sha3 -target-feature +sm4 -verify %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

void test_range_check_vsm3tt1a(uint32x4_t a, uint32x4_t b, uint32x4_t c) {
Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-neon-scalar-copy.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
// RUN: -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

// CHECK-LABEL: define{{.*}} float @test_vdups_lane_f32(<2 x float> %a) #0 {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-scalar-x-indexed-elem.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon -target-cpu cyclone \
// RUN: -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-neon-sha3.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// RUN: -target-feature +sha3 -S -emit-llvm -o - %s \
// RUN: | FileCheck %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

// CHECK-LABEL: @test_vsha512h(
Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-neon-shifts.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
// RUN: -disable-O0-optnone -ffp-contract=fast -S -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

uint8x8_t test_shift_vshr(uint8x8_t a) {
Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-neon-sm4-sm3.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// RUN: not %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon \
// RUN: -S -emit-llvm -o - %s 2>&1 | FileCheck --check-prefix=CHECK-NO-CRYPTO %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

void test_vsm3partw1(uint32x4_t a, uint32x4_t b, uint32x4_t c) {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-tbl.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
// RUN: -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-neon-vcadd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// RUN: -target-feature +v8.3a -target-feature +fullfp16 -S -emit-llvm -o - %s \
// RUN: | FileCheck %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

void foo16x4_rot90(float16x4_t a, float16x4_t b)
Expand Down
4 changes: 3 additions & 1 deletion clang/test/CodeGen/aarch64-neon-vcmla.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -triple arm64-apple-ios -target-feature +neon \
// RUN: -target-feature +v8.3a \
// RUN: -target-feature +fullfp16 \
// RUN: -disable-O0-optnone -emit-llvm -o - %s | opt -S -O1 | FileCheck %s

// REQUIRES: aarch64-registered-target

#include <arm_neon.h>

// CHECK-LABEL: @test_vcmla_f16(
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aarch64-neon-vcombine.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon -fallow-half-arguments-and-returns -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s

// Test new aarch64 intrinsics and types
// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
3 changes: 2 additions & 1 deletion clang/test/CodeGen/aarch64-neon-vget-hilo.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
// RUN: -fallow-half-arguments-and-returns -disable-O0-optnone -emit-llvm -o - %s \
// RUN: | opt -S -mem2reg | FileCheck %s
// Test new aarch64 intrinsics and types

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

Expand Down
2 changes: 2 additions & 0 deletions clang/test/CodeGen/aarch64-neon-vget.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// RUN: -fallow-half-arguments-and-returns -disable-O0-optnone -emit-llvm -o - %s \
// RUN: | opt -S -mem2reg | FileCheck %s

// REQUIRES: aarch64-registered-target || arm-registered-target

#include <arm_neon.h>

// CHECK-LABEL: define{{.*}} i8 @test_vget_lane_u8(<8 x i8> %a) #0 {
Expand Down
Loading