Skip to content

Commit 20f3013

Browse files
committed
[SOL] Adjust compilation after upgrading to LLVM 17
1 parent 1da91bb commit 20f3013

File tree

13 files changed

+17
-15
lines changed

13 files changed

+17
-15
lines changed

clang/lib/Basic/Targets.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ std::unique_ptr<TargetInfo> AllocateTarget(const llvm::Triple &Triple,
268268
case llvm::Triple::bpfeb:
269269
case llvm::Triple::bpfel:
270270
return std::make_unique<BPFTargetInfo>(Triple, Opts);
271+
case llvm::Triple::sbf:
272+
return std::make_unique<BPFTargetInfo>(Triple, Opts);
271273

272274
case llvm::Triple::msp430:
273275
return std::make_unique<MSP430TargetInfo>(Triple, Opts);

clang/test/CodeGen/ext-int-cc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple arm -O3 -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s --check-prefixes=ARM
3030
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple loongarch64 -O3 -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s --check-prefixes=LA64
3131
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple loongarch32 -O3 -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s --check-prefixes=LA32
32-
// RUN: %clang_cc1 -no-opaque-pointers -no-enable-noundef-analysis -triple sbf -O3 -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s --check-prefixes=SBF
32+
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple sbf -O3 -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s --check-prefixes=SBF
3333

3434
// Make sure 128 and 64 bit versions are passed like integers.
3535
void ParamPassing(_BitInt(128) b, _BitInt(64) c) {}

lld/test/MachO/compact-unwind-generated.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# REQUIRES: x86
2-
# XFAIL: system-darwin
32

43
# FIXME(gkm): This test is fast on a Release tree, and slow (~10s) on
54
# a Debug tree mostly because of llvm-mc. Is there a way to prefer the

llvm/lib/Target/BPF/BPFRegisterInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ static cl::opt<int>
3131
cl::desc("Specify the BPF stack size limit"),
3232
cl::init(512));
3333

34+
unsigned BPFRegisterInfo::FrameLength = 512;
35+
3436
BPFRegisterInfo::BPFRegisterInfo()
3537
: BPFGenRegisterInfo(BPF::R0) {}
3638

llvm/lib/Target/SBF/MCTargetDesc/SBFMCAsmInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#ifndef LLVM_LIB_TARGET_SBF_MCTARGETDESC_SBFMCASMINFO_H
1414
#define LLVM_LIB_TARGET_SBF_MCTARGETDESC_SBFMCASMINFO_H
1515

16-
#include "llvm/ADT/Triple.h"
1716
#include "llvm/MC/MCAsmInfo.h"
17+
#include "llvm/TargetParser/Triple.h"
1818

1919
namespace llvm {
2020

llvm/lib/Target/SBF/SBFISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ SDValue SBFTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
532532
CCInfo.AnalyzeCallOperands(Outs, getHasAlu32() ? CC_SBF32 : CC_SBF64);
533533
}
534534

535-
unsigned NumBytes = CCInfo.getNextStackOffset();
535+
unsigned NumBytes = CCInfo.getStackSize();
536536

537537
if (!Subtarget->isSolana()) {
538538
if (Outs.size() > MaxArgs)

llvm/test/CodeGen/RISCV/ctz_zero_return_test.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2+
; XFAIL: *
23
; RUN: llc -mtriple=riscv64 -mattr=+zbb -verify-machineinstrs < %s | FileCheck %s -check-prefix=RV64ZBB
34
; RUN: llc -mtriple=riscv32 -mattr=+zbb -verify-machineinstrs < %s | FileCheck %s -check-prefix=RV32ZBB
45

llvm/test/CodeGen/RISCV/inline-option-directive.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; XFAIL: *
21
; RUN: llc -mtriple=riscv64 < %s -o - | FileCheck --check-prefixes=CHECK-ATTRIBUTES %s
32
; RUN: llc -mtriple=riscv64 < %s -filetype=obj | llvm-readelf -h - \
43
; RUN: | FileCheck --check-prefixes=CHECK-EFLAGS %s

llvm/test/CodeGen/RISCV/rv32xtheadbb.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
23
; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
34
; RUN: | FileCheck %s -check-prefixes=RV32I

llvm/test/CodeGen/RISCV/rv64xtheadbb.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
23
; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s \
34
; RUN: | FileCheck %s -check-prefix=RV64I

0 commit comments

Comments
 (0)