Skip to content

Commit f38b5fe

Browse files
committed
.
Created using spr 1.3.5-bogner
2 parents baafbc0 + 7f90a5c commit f38b5fe

File tree

89 files changed

+1830
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1830
-411
lines changed

clang/lib/Sema/SemaSPIRV.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static bool checkGenericCastToPtr(Sema &SemaRef, CallExpr *Call) {
116116
RT = RT->getPointeeType();
117117
auto Qual = RT.getQualifiers();
118118
LangAS AddrSpace;
119-
switch (static_cast<spirv::StorageClass>(StorageClass)) {
119+
switch (StorageClass) {
120120
case spirv::StorageClass::CrossWorkgroup:
121121
AddrSpace =
122122
SemaRef.LangOpts.isSYCL() ? LangAS::sycl_global : LangAS::opencl_global;

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9682,7 +9682,7 @@ ModuleFile *ASTReader::getLocalModuleFile(ModuleFile &M, unsigned ID) const {
96829682
// It's a prefix (preamble, PCH, ...). Look it up by index.
96839683
int IndexFromEnd = static_cast<int>(ID >> 1);
96849684
assert(IndexFromEnd && "got reference to unknown module file");
9685-
return getModuleManager().pch_modules().end()[-static_cast<int>(IndexFromEnd)];
9685+
return getModuleManager().pch_modules().end()[-IndexFromEnd];
96869686
}
96879687
}
96889688

clang/test/Driver/print-supported-extensions-riscv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
// CHECK-NEXT: xandesvbfhcvt 5.0 'XAndesVBFHCvt' (Andes Vector BFLOAT16 Conversion Extension)
163163
// CHECK-NEXT: xandesvdot 5.0 'XAndesVDot' (Andes Vector Dot Product Extension)
164164
// CHECK-NEXT: xandesvpackfph 5.0 'XAndesVPackFPH' (Andes Vector Packed FP16 Extension)
165+
// CHECK-NEXT: xandesvsintload 5.0 'XAndesVSIntLoad' (Andes Vector INT4 Load Extension)
165166
// CHECK-NEXT: xcvalu 1.0 'XCValu' (CORE-V ALU Operations)
166167
// CHECK-NEXT: xcvbi 1.0 'XCVbi' (CORE-V Immediate Branching)
167168
// CHECK-NEXT: xcvbitmanip 1.0 'XCVbitmanip' (CORE-V Bit Manipulation)

clang/test/Preprocessor/riscv-target-features-andes.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
// CHECK-NOT: __riscv_xandesperf {{.*$}}
77
// CHECK-NOT: __riscv_xandesvbfhcvt {{.*$}}
8+
// CHECK-NOT: __riscv_xandesvsintload {{.*$}}
89
// CHECK-NOT: __riscv_xandesvpackfph {{.*$}}
910
// CHECK-NOT: __riscv_xandesvdot {{.*$}}
1011

@@ -24,6 +25,14 @@
2425
// RUN: -o - | FileCheck --check-prefix=CHECK-XANDESVBFHCVT %s
2526
// CHECK-XANDESVBFHCVT: __riscv_xandesvbfhcvt 5000000{{$}}
2627

28+
// RUN: %clang --target=riscv32 \
29+
// RUN: -march=rv32i_xandesvsintload -E -dM %s \
30+
// RUN: -o - | FileCheck --check-prefix=CHECK-XANDESVSINTLOAD %s
31+
// RUN: %clang --target=riscv64 \
32+
// RUN: -march=rv64i_xandesvsintload -E -dM %s \
33+
// RUN: -o - | FileCheck --check-prefix=CHECK-XANDESVSINTLOAD %s
34+
// CHECK-XANDESVSINTLOAD: __riscv_xandesvsintload 5000000{{$}}
35+
2736
// RUN: %clang --target=riscv32 \
2837
// RUN: -march=rv32i_xandesvpackfph -E -dM %s \
2938
// RUN: -o - | FileCheck --check-prefix=CHECK-XANDESVPACKFPH %s

llvm/docs/RISCVUsage.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@ The current vendor extensions supported are:
519519
``XAndesVBFHCvt``
520520
LLVM implements `version 5.0.0 of the Andes Vector BFLOAT16 Conversion Extension specification <https://github.com/andestech/andes-v5-isa/releases/download/ast-v5_4_0-release/AndeStar_V5_ISA_Spec_UM165-v1.5.08-20250317.pdf>`__ by Andes Technology. All instructions are prefixed with `nds.` as described in the specification.
521521

522+
``XAndesVSINTLoad``
523+
LLVM implements `version 5.0.0 of the Andes Vector INT4 Load Extension specification <https://github.com/andestech/andes-v5-isa/releases/download/ast-v5_4_0-release/AndeStar_V5_ISA_Spec_UM165-v1.5.08-20250317.pdf>`__ by Andes Technology. All instructions are prefixed with `nds.` as described in the specification.
524+
522525
``XAndesVPackFPH``
523526
LLVM implements `version 5.0.0 of the Andes Vector Packed FP16 Extension specification <https://github.com/andestech/andes-v5-isa/releases/download/ast-v5_4_0-release/AndeStar_V5_ISA_Spec_UM165-v1.5.08-20250317.pdf>`__ by Andes Technology. All instructions are prefixed with `nds.` as described in the specification.
524527

llvm/docs/ReleaseNotes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ Changes to the RISC-V Backend
213213
* Adds assembler support for the Andes `XAndesvbfhcvt` (Andes Vector BFLOAT16 Conversion extension).
214214
* `-mcpu=andes-ax45mpv` was added.
215215
* Removed -mattr=+no-rvc-hints that could be used to disable parsing and generation of RVC hints.
216+
* Adds assembler support for the Andes `XAndesvsintload` (Andes Vector INT4 Load extension).
216217

217218
Changes to the WebAssembly Backend
218219
----------------------------------

llvm/include/llvm/IR/Type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ inline Type **unwrap(LLVMTypeRef* Tys) {
515515
}
516516

517517
inline LLVMTypeRef *wrap(Type **Tys) {
518-
return reinterpret_cast<LLVMTypeRef*>(const_cast<Type**>(Tys));
518+
return reinterpret_cast<LLVMTypeRef *>(Tys);
519519
}
520520

521521
} // end namespace llvm

llvm/include/llvm/MC/MCSection.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class raw_ostream;
3939
class Triple;
4040

4141
// Represents a contiguous piece of code or data within a section. Its size is
42-
// determined by MCAssembler::layout. All subclasses (except
43-
// MCRelaxableFragment, which stores a MCInst) must have trivial destructors.
42+
// determined by MCAssembler::layout. All subclasses must have trivial
43+
// destructors.
4444
//
4545
// Declaration order: MCFragment, MCSection, then MCFragment's derived classes.
4646
// This allows MCSection's inline functions to access MCFragment members and
@@ -101,12 +101,6 @@ class MCFragment {
101101
MCFragment(const MCFragment &) = delete;
102102
MCFragment &operator=(const MCFragment &) = delete;
103103

104-
/// Destroys the current fragment.
105-
///
106-
/// This must be used instead of delete as MCFragment is non-virtual.
107-
/// This method will dispatch to the appropriate subclass.
108-
LLVM_ABI void destroy();
109-
110104
MCFragment *getNext() const { return Next; }
111105

112106
FragmentType getKind() const { return Kind; }

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4247,7 +4247,7 @@ SDValue TargetLowering::foldSetCCWithOr(EVT VT, SDValue N0, SDValue N1,
42474247
// (X | Y) == Y
42484248
// (X | Y) != Y
42494249
SDValue X;
4250-
if (sd_match(N0, m_Or(m_Value(X), m_Specific(N1))) && hasAndNotCompare(N1)) {
4250+
if (sd_match(N0, m_Or(m_Value(X), m_Specific(N1))) && hasAndNotCompare(X)) {
42514251
// If the target supports an 'and-not' or 'and-complement' logic operation,
42524252
// try to use that to make a comparison operation more efficient.
42534253

llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -632,16 +632,19 @@ Error ORCPlatformSupport::initialize(orc::JITDylib &JD) {
632632
int32_t result;
633633
auto E = ES.callSPSWrapper<SPSDLUpdateSig>(WrapperAddr->getAddress(),
634634
result, DSOHandles[&JD]);
635-
if (result)
635+
if (E)
636+
return E;
637+
else if (result)
636638
return make_error<StringError>("dlupdate failed",
637639
inconvertibleErrorCode());
638-
return E;
639-
}
640-
return ES.callSPSWrapper<SPSDLOpenSig>(WrapperAddr->getAddress(),
641-
DSOHandles[&JD], JD.getName(),
642-
int32_t(ORC_RT_RTLD_LAZY));
640+
} else
641+
return ES.callSPSWrapper<SPSDLOpenSig>(WrapperAddr->getAddress(),
642+
DSOHandles[&JD], JD.getName(),
643+
int32_t(ORC_RT_RTLD_LAZY));
643644
} else
644645
return WrapperAddr.takeError();
646+
647+
return Error::success();
645648
}
646649

647650
Error ORCPlatformSupport::deinitialize(orc::JITDylib &JD) {

0 commit comments

Comments
 (0)