Skip to content

[Clang][RISCV] Refactor builtins to TableGen #80280

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

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
849 commits
Select commit Hold shift + click to select a range
1b87ebc
[llvm-objcopy] Add --remove-symbol-prefix (#79415)
kongy Feb 7, 2024
e1d564a
[llvm-exegesis] Allow retries on flaky middle half test
boomanaiden154 Feb 7, 2024
0f439f3
[flang] Fix hlfir.as_expr codegen for polymorphic entities (#80824)
jeanPerier Feb 7, 2024
88c830a
[TOSA] Fix avgpool2d accum in wider type (#80849)
RoboTux Feb 7, 2024
f8562e2
[flang][OpenMP][NFC] Further refactoring for `genOpWithBody` & (#80839)
ergawy Feb 7, 2024
365bf43
[LSR] Regenerate test checks (NFC)
nikic Feb 7, 2024
e60c4b6
[InstCombine] Change order of checks for dominating conditions (NFC)
nikic Feb 7, 2024
bec7181
[SCEVExpander] Don't use recursive expansion for ptr IV inc
nikic Feb 7, 2024
eeb60e3
[AMDGPU] Remove unused multiclass
jayfoad Feb 7, 2024
7760006
[libc][stdbit] implement stdc_trailing_ones (C23) (#80459)
nickdesaulniers Feb 7, 2024
670c252
[DAG] Use DAGCombiner::SimplifyDemandedBits wrappers with default (al…
RKSimon Feb 6, 2024
c2a91d4
[X86] combine-movmsk-avx.ll - add full AVX1/AVX2 VTEST/MOVMSK test co…
RKSimon Feb 6, 2024
89ad31f
[RemoveDIs][DebugInfo] Perform some pre-turn-on test maintenence (#80…
jmorse Feb 7, 2024
fb581ad
[SROA] Add tests with gep of index select (NFC)
nikic Feb 7, 2024
af6656c
[clang][Interp][NFC] Fix moveArrayTy byte offset
tbaederr Feb 7, 2024
df856e4
[SLP]Add GEP cost estimation for gathered loads.
alexey-bataev Feb 7, 2024
61c7a69
[clang][Interp] Fix sizeof of reference types
tbaederr Feb 7, 2024
a97ff2d
[clang][Interp] Add missing static_assert message
tbaederr Feb 7, 2024
d109f94
[DebugInfo][RemoveDIs] Re-enable some test coverage
jmorse Feb 7, 2024
f37d81f
[PatternMatch] Add a matching helper `m_ElementWiseBitCast`. NFC. (#8…
dtcxzyw Feb 7, 2024
6cb66ee
[RemoveDIs][DebugInfo] Handle RAUW from dead constants (#80837)
SLTozer Feb 7, 2024
accbcb9
[llvm-objcopy][test] Use actual temporary file names in the test for …
gribozavr Feb 7, 2024
b0c6fc8
[clang][Interp] Ignore UsingEnumDecls
tbaederr Feb 7, 2024
7ab0a87
[InstCombine] Try to freely invert phi nodes (#80804)
dtcxzyw Feb 7, 2024
0aacd44
[RemoveDIs][DebugInfo] Hoist DPValues in SpeculativeExecution (#80886)
SLTozer Feb 7, 2024
de7beb0
[DAG] ExpandShiftWithKnownAmountBit - reduce number of repeated getOp…
RKSimon Feb 7, 2024
50d38cf
[X86] X86FixupVectorConstants.cpp - update comment to describe all th…
RKSimon Feb 7, 2024
4e58f03
[Clang] Fix : More Detailed "No expected directives found" (#78338)
Sh0g0-1758 Feb 7, 2024
c76b0eb
Revert "[RemoveDIs][DebugInfo] Hoist DPValues in SpeculativeExecution…
SLTozer Feb 7, 2024
52bf531
[Clang][Sema] Fix out-of-bounds access (#80978)
Sirraide Feb 7, 2024
5c84054
[LinkerWrapper] Support relocatable linking for offloading (#80066)
jhuber6 Feb 7, 2024
5d8a731
[clang][Interp] Support __builtin_eh_return_data_regno
tbaederr Feb 7, 2024
66d4fe9
[DebugInfo][RemoveDIs] Final final test-maintenence patch (#80988)
jmorse Feb 7, 2024
d42f395
[clang][Interp][NFC] Convert test to verify=expected,both style
tbaederr Feb 7, 2024
7718ac3
[MLIR] NFC. Fix remaining clang-tidy warnings in AffineExpr.cpp (#80933)
bondhugula Feb 7, 2024
d4a2c7f
[clang][Interp] Fix record initialization from temporary in initlist
tbaederr Feb 7, 2024
7a71ac2
[InstCombine] Canonicalize fcmp with inf (#80986)
dtcxzyw Feb 7, 2024
aeb5884
[RemoveDIs] Don't convert debug-info in bitcode-loading just now (#80…
jmorse Feb 7, 2024
c954986
[GISel] Add support for scalable vectors in getGCDType (#80307)
michaelmaitland Feb 7, 2024
4d12292
[AMDGPU] Clean up and share SOP Real instruction definitions (#80990)
jayfoad Feb 7, 2024
4f381af
[InstCombine] Add additional multi-use test for and/or replacement (NFC)
nikic Feb 7, 2024
934ba0d
[InstCombine] Handle missing cases in `visitFCmpInst`
dtcxzyw Feb 7, 2024
8c37e3e
[RISCV] Only set Zca flag for EF_RISCV_RVC in ELFObjectFileBase::getR…
topperc Feb 7, 2024
79fec2f
[AtomicExpand][RISCV] Call shouldExpandAtomicRMWInIR before widenPart…
topperc Feb 7, 2024
7212b4a
[RemoveDIs] Remove unused debug-printing facility for DPMarkers
jmorse Feb 7, 2024
7e4ac85
[Flang] Use specific symbol rather than generic symbol as procInterfa…
DanielCChen Feb 7, 2024
ab92f62
[workflows] Fix libclc CI tests (#80942)
tstellar Feb 7, 2024
65bf93d
[InstCombine] Clean up bitwise folds without one-use check (#80587)
dtcxzyw Feb 7, 2024
bb531c9
[NewPM/Codegen] Move MachineModuleInfo ownership outside of analysis …
aeubanks Feb 7, 2024
5a83bcc
[X86] Fix lowering TLS under darwin large code model (#80907)
aeubanks Feb 7, 2024
eaab6ab
[llc] Respect --print-pipeline-passes when using -passes (#80940)
aeubanks Feb 7, 2024
c1f7f4d
[libc][NFC] Remove dead code (#81005)
gchatelet Feb 7, 2024
e71a5f5
[NFC] Typo in Register.h
mariusz-sikora-at-amd Feb 7, 2024
34f61cf
[DebugInfo][RemoveDIs] Instrument MergeFunctions for DPValues (#80974)
jmorse Feb 7, 2024
e28ca2d
[libc] Support C23 'b' (binary) modifier in printf (#80851)
agentcooper Feb 7, 2024
bcc1635
[libc] Enable float128 entrypoints on aarch64 and riscv64. (#80682)
lntue Feb 7, 2024
9eed899
[MemProf] Handle empty stack context during ThinLTO cloning (#81008)
teresajohnson Feb 7, 2024
7c16cb6
[mlir-opt][nfc] Remove dead function decls
c-rhodes Feb 7, 2024
b0b0bf6
WebAssemblyTargetMachine.cpp: fix a typo in a message (#80958)
yamt Feb 7, 2024
347ab99
[Clang][Docs] Fix trailing whitespace warnings
jhuber6 Feb 7, 2024
7880b2c
[mlir] Add direct vectorization lowering for `tensor.pack` ops (#78660)
Max191 Feb 7, 2024
3115ad8
[AMDGPU] Accept arbitrary sized sources in CalculateByteProvider (#70…
jrbyrnes Feb 7, 2024
b89eb97
[Clang][OpenMP] Fix `!isNull() && "Cannot retrieve a NULL type pointe…
Sh0g0-1758 Feb 7, 2024
9c75a98
[SystemZ] Implement A, O and R inline assembly format flags (#80685)
iii-i Feb 7, 2024
2ecf608
[mlir]Fix compose subview (#80551)
linuxlonelyeagle Feb 7, 2024
8b0f47b
[Object][Wasm] Use file offset for section addresses in linked wasm f…
dschuff Feb 7, 2024
caf537e
Reapply "[RemoveDIs][DebugInfo] Hoist DPValues in SpeculativeExecutio…
SLTozer Feb 7, 2024
9f6c005
[MLIR][VCIX] Support VCIX intrinsics in LLVMIR dialect (#75875)
nikolaypanchenko Feb 7, 2024
7a9b0e4
[OpenMP][test]Flip bit-fields in 'struct flags' for big-endian in tes…
xingxue-ibm Feb 7, 2024
369b822
[flang] Introducing a method to dynamically and conditionally registe…
VijayKandiah Feb 7, 2024
c95693c
[NFC][AMDGPU] Fix unused-variable warning (#81040)
pranavk Feb 7, 2024
bb3ea6c
[MemProf] Switch to DenseMap for performance (NFC) (#81035)
teresajohnson Feb 7, 2024
b1ac052
[Coro] [async] Disable inlining in async coroutine splitting (#80904)
aschwaighofer Feb 7, 2024
d05bd34
[NFC][NewPM/Codegen] Remove unused parameter from verifyMachineFunction
aeubanks Feb 7, 2024
50ffc53
Don't search for separate debug files for mach-o object files (#81041)
jimingham Feb 7, 2024
514686a
[RISCV] Add correct Uses, Defs, isReturn to Zcmp (#81039)
francisvm Feb 7, 2024
d6c2cbb
Fix test failure if CLANG_VENDOR contains spaces (#81017)
kongy Feb 7, 2024
ff8c865
[Driver] Allow -fbasic-block-sections for AArch64 ELF (#80916)
dhoekwater Feb 7, 2024
43badc0
[NewPM/CodeGen] Move MachineModuleInfo::invalidate() to MachineModule…
aeubanks Feb 8, 2024
78b9dd6
Fix Bazel build (#81064)
quanwanandy Feb 8, 2024
4520b47
MIPS/libunwind: Use -mfp64 if compiler is FPXX (#68521)
wzssyqa Feb 8, 2024
0d7f232
[libomptarget] [OMPT] Fixed return address computation for OMPT event…
dhruvachak Feb 8, 2024
ece66db
[SelectionDAG] Add computeKnownBits support for ISD::STEP_VECTOR (#80…
lukel97 Feb 8, 2024
2df42fe
[lldb] [NFC] Remove min pkt size for compression setting (#81075)
jasonmolenda Feb 8, 2024
7da1dda
[AArch64][GlobalISel] Update GISel check line and regenerate tests. NFC
davemgreen Feb 8, 2024
567d304
[TableGen][NFC] Replace hardcoded opcode numbering. (#81065)
nvjle Feb 8, 2024
5c4a630
[LLD][ELF] Silence warning when building with latest MSVC
aganea Feb 8, 2024
d01864e
[TableGen] Remove map CodeGenTarget::InstrToIntMap. (#81079)
nvjle Feb 8, 2024
05091aa
[NFC][InstrProf]Generalize getParsedIRPGOFuncName to getParsedIRPGONa…
mingmingl-llvm Feb 8, 2024
d033799
[clang-format] Add Leave to AlwaysBreakTemplateDeclarations (#80569)
owenca Feb 8, 2024
351f94d
[clang][NFC] resolve redundant predicates (#79701)
Rageking8 Feb 8, 2024
8f6e13e
[clang-format] Fix a regression in dumping the config (#80628)
owenca Feb 8, 2024
c8ca98a
[InstCombine] Handle IsInf/IsZero idioms (#80607)
dtcxzyw Feb 8, 2024
e17dded
[InstSimplify] Generalize `simplifyAndOrOfFCmps` (#81027)
dtcxzyw Feb 8, 2024
9ff3b82
[AMDGPU] Revert Metadata Version Upgrade (#80995)
Pierre-vh Feb 8, 2024
a446c9b
[clang][dataflow] Add support for `CXXRewrittenBinaryOperator`. (#81086)
martinboehme Feb 8, 2024
a24b0c3
clang/AMDGPU: Regenerate test checks in hip header tests
arsenm Feb 8, 2024
decbd29
Reapply "InstCombine: Introduce SimplifyDemandedUseFPClass"" (#74056)
arsenm Feb 8, 2024
35d6ae8
[InstCombine] Handle multi-use in simplifyAndOrWithOpReplaced() (#81006)
nikic Feb 8, 2024
7c0d52c
[ValueTracking] Support dominating known bits condition in and/or (#7…
nikic Feb 8, 2024
7ec6e73
[DAG] Fix typos in comments; NFC
svenvh Feb 8, 2024
dd9511d
[clang][Interp][NFC] Convert test case to verify=expected,both style
tbaederr Feb 7, 2024
ef05b4b
[BasicAA] More vscale tests. NFC
davemgreen Feb 8, 2024
9ac82f0
[OpenMP] [cmake] In standalone mode, make Python3_EXECUTABLE availabl…
mstorsjo Feb 8, 2024
49ee2ff
[X86][GlobalISel] Reorganize br/brcond tests (NFC) (#80204)
turinevgeny Feb 8, 2024
b85fe40
[clang][analyzer] Add missing stream related functions to StdLibraryF…
balazske Feb 8, 2024
8f2378d
[mlir][EmitC] Add builders for call_opaque op (#80879)
Feb 8, 2024
1a42b38
[DebugInfo][RemoveDIs] Erase ranges of instructions individually (#81…
jmorse Feb 8, 2024
faa2f96
[DebugInfo] Handle dbg.assigns in FastISel (#80734)
jmorse Feb 8, 2024
878234b
[BasicAA] Scalable offset with scalable typesize. (#80818)
davemgreen Feb 8, 2024
455c396
[RISCV][test] Add test coverage for RISCVInstrInfo::isCopyInstrImpl
asb Feb 8, 2024
d7fb94b
[lldb][TypeSynthetic][NFC] Make SyntheticChildrenFrontend::Update() r…
Michael137 Feb 8, 2024
b35c519
[DAG] tryToFoldExtendOfConstant - share the same SDLoc argument inste…
RKSimon Feb 8, 2024
a643ab8
[DebugInfo][RemoveDIs] Final omnibus test fixing for RemoveDIs (#81125)
jmorse Feb 8, 2024
7d4733a
[X86] LowerBUILD_VECTOR - share the same SDLoc argument instead of re…
RKSimon Feb 8, 2024
8e707f8
[Flang][Lower] NFC: Update target-features/target-cpu tests (#80984)
skatrak Feb 8, 2024
42902d2
[InstCombine] Add tests for x / sqrt(y / z) with fast-math
zjaffal Jan 2, 2024
e50189b
[InstCombine] Add additional tests for fdiv-sqrt
zjaffal Jan 6, 2024
4b72c5e
[clang][Sema] Subclass `-Wshorten-64-to-32` under `-Wimplicit-int-con…
whisperity Feb 8, 2024
448fe73
[X86] Add X86::getVectorRegisterWidth helper. NFC.
RKSimon Feb 8, 2024
6ea76c1
[NFCI][RemoveDIs] Build LLVM with RemoveDIs iterators
jmorse Feb 8, 2024
ec1fcb3
[Flang][bbc] Prevent bbc -emit-fir command invoking OpenMP passes twi…
agozillon Feb 8, 2024
72f04fa
[OpenMP] [cmake] Don't use -fno-semantic-interposition on Windows (#8…
mstorsjo Feb 8, 2024
8697bbe
[clang] Use CPlusPlus language option instead of Bool (#80975)
Fznamznon Feb 8, 2024
fe8a62c
[MLIR] Fix crash in AffineMap::replace for zero result maps (#80930)
bondhugula Feb 8, 2024
d63c8be
[clang][ExprConst] Remove unnecessary cast
tbaederr Feb 8, 2024
3ad6359
[PatternMatch] Add m_PtrAdd() matcher (NFC)
nikic Feb 8, 2024
d9e9276
[ConstantRange] Improve ConstantRange::binaryXor (#80146)
dtcxzyw Feb 8, 2024
06774d6
[clang][Interp] Handle CXXInheritedCtorInitExprs
tbaederr Feb 8, 2024
c4b0dfc
[Clang] Fix a non-effective assertion (#81083)
shiltian Feb 8, 2024
fb6ef42
[clang][Interp][NFC] Convert records test to verify=expected,both style
tbaederr Feb 8, 2024
10cd0e7
[flang][docs] Update flang documentation regarding the test suite (#8…
tarunprabhu Feb 8, 2024
cd18342
[clang][Interp] Fix handling of generic lambdas
tbaederr Feb 8, 2024
3e33b6f
[libc++][NFC] Reformat a few files that had gotten mis-formatted
ldionne Feb 8, 2024
5452cbc
[AArch64] Indirect tail-calls cannot use x16 with pac-ret+pc (#81020)
ostannard Feb 8, 2024
0802596
[Flang] Update the fix of PR 80738 to cover generic interface inside …
DanielCChen Feb 8, 2024
dc5da48
[InstCombine] Add tests for #77108 (NFC)
nikic Feb 8, 2024
fffcc5c
[CodeGen] Add ValueType v3i8 (NFCI). (#80826)
fpetrogalli Feb 8, 2024
b14731f
[OpenACC][NFC] Fix parse result from 'set'
erichkeane Feb 8, 2024
067d277
[MLIR] Setting MemorySpace During Bufferization (#78484)
manbearian Feb 8, 2024
92eaf03
[NFC][RemoveDIs] Remove conditional compilation for RemoveDIs (#81149)
jmorse Feb 8, 2024
7d19dc5
[AMDGPU][True16] Support VOP3 source DPP operands. (#80892)
kosarev Feb 8, 2024
b846613
[X86] X86FixupVectorConstants - add destination register width to reb…
RKSimon Feb 8, 2024
eb85c8e
[X86] Add test case for #81136
RKSimon Feb 8, 2024
f407be3
[X86] X86FixupVectorConstants - rename FixupEntry::BitWidth to FixupE…
RKSimon Feb 8, 2024
5aeabf2
[XCOFF][obj2yaml] Support SymbolAlignmentAndType as 2 separate fields…
stephenpeckham Feb 8, 2024
58e8147
[flang][openacc] Use original input for base address with optional (#…
clementval Feb 8, 2024
66d462d
Add missing textual header to module map
adrian-prantl Feb 8, 2024
750981f
Fix a truly strange triple in testcase
adrian-prantl Feb 8, 2024
bdde5f9
[DebugInfo][RemoveDIs] Turn on non-instrinsic debug-info by default
jmorse Feb 8, 2024
f219cda
[lldb] Fix printf formatting of std::time_t seconds (#81078)
jasonmolenda Feb 8, 2024
af97edf
[lldb] Refactor GetFormatFromCString to always check for partial matc…
kastiglione Feb 8, 2024
bef25ae
[X86] X86FixupVectorConstants - use explicit register bitwidth for th…
RKSimon Feb 8, 2024
c8d431e
[riscv] Add test coverage in advance of a upcoming fix
preames Feb 8, 2024
16d1a64
[DirectX] Fix HLSL bitshifts to leverage the OpenCL pipeline for bits…
coopp Feb 8, 2024
758fd59
[DirectX][NFC] Change usage pattern *Dxil* to *DXIL* for uniformity (…
bharadwajy Feb 8, 2024
abc4f74
[flang][cuda] Lower attribute for local variable (#81076)
clementval Feb 8, 2024
17f0680
[Clang][Sema] Abbreviated function templates do not append invented p…
sdkrystian Feb 8, 2024
35fae04
[mlir][sparse] using non-static field to avoid data races. (#81165)
PeimingLiu Feb 8, 2024
da95d92
[clang][lex] Always pass suggested module to `InclusionDirective()` c…
jansvoboda11 Feb 8, 2024
13c14ad
Revert "[DebugInfo][RemoveDIs] Turn on non-instrinsic debug-info by d…
jmorse Feb 8, 2024
544f610
[libc++] Use __is_pointer_in_range inside vector::insert (#80624)
philnik777 Feb 8, 2024
d272d94
[libc++][NFC] Simplify the implementation of `numeric_limits` (#80425)
philnik777 Feb 8, 2024
1b5f691
[libc++] Avoid including <cmath> in <compare> (#80418)
philnik777 Feb 8, 2024
b92e0a3
[flang][cuda] Fix warning in switch
clementval Feb 8, 2024
c0ff108
docs/GettingStarted: document linker-related cmake options (#80932)
nhaehnle Feb 8, 2024
687304a
[clang][lex] Fix build failure after da95d926
jansvoboda11 Feb 8, 2024
ab4a793
[lldb][debugger][NFC] Add broadcast bit for category-based progress e…
chelcassanova Feb 8, 2024
a1ed821
[TableGen] Simplify prepSkipToLineEnd for preprocessing
MaskRay Feb 8, 2024
a56fa16
[clang-tidy] Fix failing test after #80864 (#81171)
sdkrystian Feb 8, 2024
3d71e41
[docs]: Add a note about using custom types with diagnostics (#73818)
j2kun Feb 8, 2024
74fc16a
[lldb] Expand background symbol download (#80890)
JDevlieghere Feb 8, 2024
88e5251
[AMDGPU] Compiler should synthesize private buffer resource descripto…
alex-t Feb 8, 2024
d0f72f8
[RISCV] Consider truncate semantics in performBUILD_VECTORCombine (#8…
preames Feb 8, 2024
35c4f02
[NFC][clang][Driver] Specify options for <arg> with -save-temps=<arg>…
lamb-j Feb 8, 2024
3b57b64
[HLSL][SPIR-V] Add create.handle intrinsic (#81038)
sudonatalie Feb 8, 2024
e5924d6
[mlir][sparse] Implement parsing n out of m (#79935)
yinying-lisa-li Feb 8, 2024
d1fdb41
[MLIR][Python] Add method for getting the live operation objects (#78…
teqdruid Feb 8, 2024
705fcd4
Revert "[lldb] Expand background symbol lookup" (#81182)
JDevlieghere Feb 8, 2024
b8545e1
[RISCV] Consider all subvector extracts within a single VREG cheap (#…
preames Feb 8, 2024
5f4b40c
[lldb] Expand background symbol download (#80890)
JDevlieghere Feb 8, 2024
3f9d8d8
[Coverage] MCDCRecordProcessor: Find `ExecVectors` directly (#80816)
chapuni Feb 8, 2024
5818572
[Object][Wasm] Generate symbol info from name section names (#81063)
dschuff Feb 8, 2024
cdde0d9
[clang][Interp][NFC] Make a local variable const
tbaederr Feb 8, 2024
7c9c498
[DWARFLinkerParallel] Fix member initialization order (#81179)
MaskRay Feb 8, 2024
f78c9b8
[RISCV] Use MCPhysReg for AllPopRegs. NFC
topperc Feb 8, 2024
4b54b47
[NVPTX][NFC] cleanup dead vars, use MAKE_CASE (#81161)
AlexMaclean Feb 8, 2024
0572dab
[gn build] Add IntrinsicsSPIRV.h generator
aeubanks Feb 8, 2024
a6f42ad
[Bazel] Update for SPIRV
chapuni Feb 8, 2024
7fe97f0
[BOLT] Always run CheckLargeFunctions in non-relocation mode (#80922)
maksfb Feb 8, 2024
7b5a9bb
[github/CODEOWNERS] Add Alexander as BOLT reviewer.
dcci Feb 8, 2024
3c42e10
Consider aggregate bases when checking if an InitListExpr is constant…
rnk Feb 8, 2024
06c89bd
[RISCV] Check type is legal before combining mgather to vlse intrinsi…
lukel97 Feb 8, 2024
f720150
[mlir] Add transformation to wrap scf::while in zero-trip-check (#81050)
Feb 8, 2024
8c106a1
[flang] Fix attribute printing for fir.global op (#81197)
clementval Feb 8, 2024
9affa17
[NVPTX] Add support for calling aliases (#81170)
AlexMaclean Feb 8, 2024
9211e67
[NVVMReflect] Force dead branch elimination in NVVMReflect (#81189)
jhuber6 Feb 8, 2024
42230e2
[LinkerWrapper] Allow 'all' as a generic bundled architecture (#81193)
jhuber6 Feb 8, 2024
c429f48
[Object][WebAssembly] Improve error on invalid relocation (#81203)
sbc100 Feb 8, 2024
0800a36
Revert "[NVVMReflect] Force dead branch elimination in NVVMReflect (#…
jhuber6 Feb 8, 2024
2572f45
[flang] Fix missing generated header
clementval Feb 8, 2024
9347146
Document use of `skip-precommit-approval` label for non-review pull r…
dwblaikie Feb 9, 2024
1d4fc38
[DWARFVerifier] Fix verification of empty line tables (#81162)
felipepiovezan Feb 9, 2024
1389260
[JITLink][MachO][arm64] Fix error-check order.
lhames Feb 9, 2024
fbf43b0
[libc] Only declare float128 math functions in the generated math.h i…
lntue Feb 9, 2024
4759890
[mlir][tensor] Fix bug in insert_slice canonical. with tensor encodin…
last5bits Feb 9, 2024
6e1f438
[ELF] Improve --ro-rosegment/--omagic/--nmagic tests
MaskRay Feb 9, 2024
f608269
[MLIR] Fix a small formatting issue in AsmPrinter.cpp (#81214)
abeakkas Feb 9, 2024
ffabcbc
[NVVMReflect][Reland] Force dead branch elimination in NVVMReflect (#…
jhuber6 Feb 8, 2024
c560ce4
[flang][cuda] Lower attribute for dummy argument (#81212)
clementval Feb 9, 2024
8e297c7
[ELF] Improve --ro-rosegment tests
MaskRay Feb 9, 2024
ac05771
[HEXAGON] Add basic block limit for RDF optimizations (#81071)
quic-asaravan Feb 9, 2024
db88f30
[RISCV] Add test for saving s10 with cm.push. NFC
topperc Feb 9, 2024
763139a
[clang-format] Update FormatToken::isSimpleTypeSpecifier() (#80241)
owenca Feb 9, 2024
b2cd50d
[RISCV] Use replace XLenVT with i64 in some isel patterns that are on…
topperc Feb 9, 2024
95b14da
[RegisterCoalescer] Clear instructions not recorded in `ErasedInstrs`…
dianqk Feb 9, 2024
abc39f9
[RISCV] Add casts to isel patterns that produce more than 1 instruction.
topperc Feb 9, 2024
0079136
[BasicAA] Fix Scale check in vscale aliasing. (#81174)
davemgreen Feb 9, 2024
8316bf3
Revert "[RegisterCoalescer] Clear instructions not recorded in `Erase…
dianqk Feb 9, 2024
ccb46e8
Reapply "[RegisterCoalescer] Clear instructions not recorded in `Eras…
dianqk Feb 9, 2024
b477d39
[flang] Align runtime info and lowering regarding passing ABIs (#81166)
jeanPerier Feb 9, 2024
bc6955f
[AMDGPU] Don't fix the scavenge slot at offset 0 (#79136)
rovka Feb 9, 2024
0d9decc
[clang][Interp] Handle invalid CXXCtorInitializer expressions
tbaederr Feb 8, 2024
173e674
[clang-format] Fix an out-of-bounds bug uncovered by 763139afc19d
owenca Feb 9, 2024
b9079ba
[NFC] clang-format utils/TableGen (#80973)
Pierre-vh Feb 9, 2024
2f8e37d
[SROA] Unfold gep of index select (#80983)
nikic Feb 9, 2024
38b54c7
[flang] fix shared library builds after #81166
jeanPerier Feb 9, 2024
f661057
Revert "[AMDGPU] Compiler should synthesize private buffer resource d…
jplehr Feb 9, 2024
d72e8c2
[NFC] Add b9079ba to git-blame-ignore-revs (#81233)
Pierre-vh Feb 9, 2024
df2513c
[clang][Interp] Fix three-way comparison detection
tbaederr Feb 9, 2024
79e43eb
[clang][Interp] Protect ArrayDecay ops against dummy pointers
tbaederr Feb 9, 2024
9e73656
[clang][Interp] Support ExpressionTraitExprs
tbaederr Feb 9, 2024
5609bd8
Revert "[clang-format] Update FormatToken::isSimpleTypeSpecifier() (#…
owenca Feb 9, 2024
245d772
Revert "[clang-format] Fix an out-of-bounds bug uncovered by 763139af…
owenca Feb 9, 2024
c227eca
[clang][Interp][NFC] Convert test case to verify=expected,both style
tbaederr Feb 9, 2024
02362b1
[clang-format] Check token size in QualifierFixerTest.cpp
owenca Feb 9, 2024
ac3bd2b
[LoopReroll] Remove unused and unmaintained pass (#80972)
nikic Feb 9, 2024
75798f2
[gn build] Port ac3bd2bd5301
llvmgnsyncbot Feb 9, 2024
1198c3a
[X86] PromoteMaskArithmetic - use ISD::isBitwiseLogicOp wrapper. NFC.
RKSimon Feb 8, 2024
713fe6d
[X86] PromoteMaskArithmetic - consistently use SDValue instead of und…
RKSimon Feb 8, 2024
3902f9b
[X86] PromoteMaskArithmetic - explicitly attempt to constant fold zex…
RKSimon Feb 9, 2024
2cb61a1
[clang][Interp] Fix initializing PredefinedExprs
tbaederr Feb 9, 2024
316373a
[llvm][AArch64] Refactor expansion of CALL_BTI and CALL_RVMARKER (#80…
DavidSpickett Feb 9, 2024
b5a273a
[Polly][DebugInfo] Use getStableDebugLoc to avoid intrinsic-dependent…
SLTozer Feb 9, 2024
614fab4
[X86] PromoteMaskArithmetic - share the same SDLoc argument instead o…
RKSimon Feb 9, 2024
047f832
[X86] ctpop-mask.ll - add 32-bit with SSE2 test coverage
RKSimon Feb 9, 2024
9ba2656
[X86] ReplaceNodeResults - shrink i64 CTPOP to (shifted) CTPOP i32 if…
RKSimon Feb 9, 2024
eb9cd80
[Clang][TableGen] Add Features to TargetBuiltin
wangpc-pp Feb 9, 2024
345efe0
[𝘀𝗽𝗿] landed version
wangpc-pp Feb 9, 2024
7c4f4b9
Rebase
wangpc-pp Feb 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 0 additions & 93 deletions clang/include/clang/Basic/BuiltinsRISCV.def

This file was deleted.

148 changes: 148 additions & 0 deletions clang/include/clang/Basic/BuiltinsRISCV.td
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
//==- BuiltinsRISCV.td - RISC-V Builtin function database ---*- tablegen -*-==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file defines the RISC-V-specific builtin function database.
//
//===----------------------------------------------------------------------===//

include "clang/Basic/BuiltinsBase.td"

class RISCVBuiltin<string prototype, string features = ""> : TargetBuiltin {
let Spellings = ["__builtin_riscv_" # NAME];
let Prototype = prototype;
let Features = features;
}

let Attributes = [NoThrow, Const] in {
//===----------------------------------------------------------------------===//
// Zbb extension.
//===----------------------------------------------------------------------===//
def orc_b_32 : RISCVBuiltin<"unsigned int(unsigned int)", "zbb">;
def orc_b_64 : RISCVBuiltin<"uint64_t(uint64_t)", "zbb,64bit">;
def clz_32 : RISCVBuiltin<"unsigned int(unsigned int)", "zbb|xtheadbb">;
def clz_64 : RISCVBuiltin<"unsigned int(uint64_t)", "zbb|xtheadbb,64bit">;
def ctz_32 : RISCVBuiltin<"unsigned int(unsigned int)", "zbb">;
def ctz_64 : RISCVBuiltin<"unsigned int(uint64_t)", "zbb,64bit">;

//===----------------------------------------------------------------------===//
// Zbc or Zbkc extension.
//===----------------------------------------------------------------------===//
def clmul_32 : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)", "zbc|zbkc">;
def clmul_64 : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)", "zbc|zbkc,64bit">;
def clmulh_32 : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)", "zbc|zbkc,32bit">;
def clmulh_64 : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)", "zbc|zbkc,64bit">;
def clmulr_32 : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)", "zbc,32bit">;
def clmulr_64 : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)", "zbc,64bit">;

//===----------------------------------------------------------------------===//
// Zbkx extension.
//===----------------------------------------------------------------------===//
let Features = "zbkx,32bit" in {
def xperm4_32 : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)">;
def xperm8_32 : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)">;
} // Features = "zbkx,32bit"

let Features = "zbkx,64bit" in {
def xperm4_64 : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)">;
def xperm8_64 : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)">;
} // Features = "zbkx,64bit"

//===----------------------------------------------------------------------===//
// Zbkb extension.
//===----------------------------------------------------------------------===//
def brev8_32 : RISCVBuiltin<"unsigned int(unsigned int)", "zbkb">;
def brev8_64 : RISCVBuiltin<"uint64_t(uint64_t)", "zbkb,64bit">;
def zip_32 : RISCVBuiltin<"unsigned int(unsigned int)", "zbkb,32bit">;
def unzip_32 : RISCVBuiltin<"unsigned int(unsigned int)", "zbkb,32bit">;

//===----------------------------------------------------------------------===//
// Zknd extension.
//===----------------------------------------------------------------------===//
let Features = "zknd,32bit" in {
def aes32dsi : RISCVBuiltin<"unsigned int(unsigned int, unsigned int, _Constant unsigned int)">;
def aes32dsmi : RISCVBuiltin<"unsigned int(unsigned int, unsigned int, _Constant unsigned int)">;
} // Features = "zknd,32bit"

let Features = "zknd,64bit" in {
def aes64ds : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)">;
def aes64dsm : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)">;
def aes64im : RISCVBuiltin<"uint64_t(uint64_t)">;
} // Features = "zknd,64bit"

//===----------------------------------------------------------------------===//
// Zknd & Zkne extension.
//===----------------------------------------------------------------------===//
let Features = "zknd|zkne,64bit" in {
def aes64ks1i : RISCVBuiltin<"uint64_t(uint64_t, _Constant unsigned int)">;
def aes64ks2 : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)">;
} // Features = "zknd|zkne,64bit"

//===----------------------------------------------------------------------===//
// Zkne extension.
//===----------------------------------------------------------------------===//
let Features = "zkne,32bit" in {
def aes32esi : RISCVBuiltin<"unsigned int(unsigned int, unsigned int, _Constant unsigned int)">;
def aes32esmi : RISCVBuiltin<"unsigned int(unsigned int, unsigned int, _Constant unsigned int)">;
} // Features = "zkne,32bit"

let Features = "zkne,64bit" in {
def aes64es : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)">;
def aes64esm : RISCVBuiltin<"uint64_t(uint64_t, uint64_t)">;
} // Features = "zkne,64bit"

//===----------------------------------------------------------------------===//
// Zknh extension.
//===----------------------------------------------------------------------===//
let Features = "zknh" in {
def sha256sig0 : RISCVBuiltin<"unsigned int(unsigned int)">;
def sha256sig1 : RISCVBuiltin<"unsigned int(unsigned int)">;
def sha256sum0 : RISCVBuiltin<"unsigned int(unsigned int)">;
def sha256sum1 : RISCVBuiltin<"unsigned int(unsigned int)">;
} // Features = "zknh"

let Features = "zknh,32bit" in {
def sha512sig0h : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)">;
def sha512sig0l : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)">;
def sha512sig1h : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)">;
def sha512sig1l : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)">;
def sha512sum0r : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)">;
def sha512sum1r : RISCVBuiltin<"unsigned int(unsigned int, unsigned int)">;
} // Features = "zknh,32bit"

let Features = "zknh,64bit" in {
def sha512sig0 : RISCVBuiltin<"uint64_t(uint64_t)">;
def sha512sig1 : RISCVBuiltin<"uint64_t(uint64_t)">;
def sha512sum0 : RISCVBuiltin<"uint64_t(uint64_t)">;
def sha512sum1 : RISCVBuiltin<"uint64_t(uint64_t)">;
} // Features = "zknh,64bit"

//===----------------------------------------------------------------------===//
// Zksed extension.
//===----------------------------------------------------------------------===//
let Features = "zksed" in {
def sm4ed : RISCVBuiltin<"unsigned int(unsigned int, unsigned int, _Constant unsigned int )">;
def sm4ks : RISCVBuiltin<"unsigned int(unsigned int, unsigned int, _Constant unsigned int)">;
} // Features = "zksed"

//===----------------------------------------------------------------------===//
// Zksh extension.
//===----------------------------------------------------------------------===//
let Features = "zksh" in {
def sm3p0 : RISCVBuiltin<"unsigned int(unsigned int)">;
def sm3p1 : RISCVBuiltin<"unsigned int(unsigned int)">;
} // Features = "zksh"

} // Attributes = [Const, NoThrow]

//===----------------------------------------------------------------------===//
// Zihintntl extension.
//===----------------------------------------------------------------------===//
let Features = "zihintntl", Attributes = [CustomTypeChecking] in {
def ntl_load : RISCVBuiltin<"void(...)">;
def ntl_store : RISCVBuiltin<"void(...)">;
} // Features = "zihintntl", Attributes = [CustomTypeChecking]
4 changes: 4 additions & 0 deletions clang/include/clang/Basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ clang_tablegen(BuiltinsBPF.inc -gen-clang-builtins
SOURCE BuiltinsBPF.td
TARGET ClangBuiltinsBPF)

clang_tablegen(BuiltinsRISCV.inc -gen-clang-builtins
SOURCE BuiltinsRISCV.td
TARGET ClangBuiltinsRISCV)

# ARM NEON and MVE
clang_tablegen(arm_neon.inc -gen-arm-neon-sema
SOURCE arm_neon.td
Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/TargetBuiltins.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ namespace clang {
FirstRVVBuiltin = clang::Builtin::FirstTSBuiltin,
LastRVVBuiltin = RISCVVector::FirstTSBuiltin - 1,
#define BUILTIN(ID, TYPE, ATTRS) BI##ID,
#include "clang/Basic/BuiltinsRISCV.def"
#include "clang/Basic/BuiltinsRISCV.inc"
LastTSBuiltin
};
} // namespace RISCV
Expand Down
1 change: 0 additions & 1 deletion clang/include/module.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ module Clang_Basic {
textual header "clang/Basic/BuiltinsNEON.def"
textual header "clang/Basic/BuiltinsNVPTX.def"
textual header "clang/Basic/BuiltinsPPC.def"
textual header "clang/Basic/BuiltinsRISCV.def"
textual header "clang/Basic/BuiltinsRISCVVector.def"
textual header "clang/Basic/BuiltinsSME.def"
textual header "clang/Basic/BuiltinsSVE.def"
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Basic/Targets/RISCV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ static constexpr Builtin::Info BuiltinInfo[] = {
{#ID, TYPE, ATTRS, nullptr, HeaderDesc::NO_HEADER, ALL_LANGUAGES},
#define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \
{#ID, TYPE, ATTRS, FEATURE, HeaderDesc::NO_HEADER, ALL_LANGUAGES},
#include "clang/Basic/BuiltinsRISCV.def"
#include "clang/Basic/BuiltinsRISCV.inc"
};

ArrayRef<Builtin::Info> RISCVTargetInfo::getTargetBuiltins() const {
Expand Down