-
Notifications
You must be signed in to change notification settings - Fork 14.6k
__sys builtin support #145079
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
Closed
__sys builtin support #145079
Changes from 1 commit
Commits
Show all changes
1260 commits
Select commit
Hold shift + click to select a range
04cd0f2
[LSR] Clean up code using SCEVPatternMatch (NFC) (#145556)
artagnon 5ea29f7
[DA] Let getConstantPart return optional APInt (NFC) (#146135)
artagnon feb61f5
[Target] Prevent copying in loop variables (NFC)
DamonFool 34b2e93
[libc++] Introduce `__product_iterator_traits` and optimise `flat_map…
huixie90 b8f1228
[docs][coroutines] Revamp "Debugging C++ coroutines" (#142651)
vogelsgesang 372c808
[X86] canCreateUndefOrPoisonForTargetNode - PCMPEQ/PCMPGT don't creat…
RKSimon 169b4be
Attempt to fix over-keen restarter.
EricWF 94c1506
Further restrict the restarters ability to restart manually canceled …
EricWF a9295ad
AArch64: Replace deprecated MCExpr::print with MCAsmInfo::printExpr
MaskRay d93aff4
MC: Migrate away from operator<< MCExpr
MaskRay 1949536
[VPlan] Also visit VPBBs outside loop region when unrolling by VF.
fhahn ff075d0
MCParser: Remove operator<< const MCParsedAsmOperand &MO
MaskRay 344b5b7
[flang][OpenMP] Move lowering of ATOMIC to separate file, NFC (#146225)
kparzysz 33c265d
[SimplifyCFG] Use indexType from data layout in switch to table conve…
andjo403 e878b7e
MCParsedAsmOperand::print: Add MCAsmInfo parameter
MaskRay 0255ae8
AsmMatcher: Use getAsmInfo()
MaskRay 80222f0
[bazel] Port 3f531552e66f242d4bfc0163be848f9e51259d80
d0k f96832a
BPF: Replace deprecated MCExpr::print with MCAsmInfo::printExpr
MaskRay 303bc0d
SPIRV: Replace deprecated MCExpr::print with MCAsmInfo::printExpr
MaskRay c57c5f5
[flang] Fix warnings
kazutakahirata 25d7fd3
[Analysis] Remove unnecessary casts (NFC) (#146216)
kazutakahirata c101415
[DebugInfo] Remove an unnecessary cast (NFC) (#146217)
kazutakahirata 289c066
[ExecutionEngine] Remove unnecessary casts (NFC) (#146218)
kazutakahirata dea8217
[ADT] Use llvm::has_single_bit (NFC) (#146219)
kazutakahirata 402baea
[modularize] Use std::tie to implement operator< (NFC) (#146220)
kazutakahirata bad5a74
[PowerPC] Use range-based for loops (NFC) (#146221)
kazutakahirata f90025e
[llvm] Compare std::optional<T> to values directly (NFC) (#146222)
kazutakahirata fb24b4d
[BOLT] Push code to higher addresses under options (#146180)
maksfb 3ea7fc7
attempt to calm down restarter job
EricWF 5ffdd94
[CodeGenPrepare] Filter out unrecreatable addresses from memory optim…
e-kud e6b2528
MCExpr: Migrate away from operator<<
MaskRay a365abd
MCExpr: Remove error-prone operator<<
MaskRay bdb299a
[VPlan] Simplify code in single scalar transform code (NFC).
fhahn d2e8e55
CSKY: Replace deprecated MCExpr::print with MCAsmInfo::printExpr
MaskRay f771d08
[clang-format] Fix a bug in `ReflowComments: Always` (#146202)
owenca 2ed0401
CSKY: Migrate to the new relocation specifier representation
MaskRay aa8afad
MCSymbolRefExpr: Migrate away from deprecated VariantKind
MaskRay 3cc78a8
[NFC][AMDGPU] Fix the instruction order in some test cases to make do…
shiltian 1108cf6
ELFObjectWriter: Optimize isInSymtab
MaskRay 6c2aa37
MCAsmStreamer: Print symbol equated to a register
MaskRay 25d52fb
[PowerPC] Prevent copying in loop variables (NFC)
DamonFool 68d83fa
[llvm-profdata] Resolve tilde for weighted input filenames (#146206)
kongy 0d0daef
[GlobalISel] Remove an unnecessary cast (NFC) (#146249)
kazutakahirata 8a4b6cd
[IR] Remove an unnecessary cast (NFC) (#146250)
kazutakahirata 72e24f3
[MC] Remove an unnecessary cast (NFC) (#146251)
kazutakahirata 9cf251d
[Target] Use range-based for loops (NFC) (#146253)
kazutakahirata c9cdc33
[clang] Remove unused includes (NFC) (#146254)
kazutakahirata 2248cdf
[Arm] Fix UAF in ARMConstantIslandPass (#146232)
qinkunbao 279e808
MC: Make mc-dump output compact
MaskRay 2661d59
MC: Remove post-relaxation and Symbol printing from mc-dump output
MaskRay 842f4f7
[Target] Prevent copying in loop variables (NFC)
DamonFool b54337d
MC: Enhance mc-dump output
MaskRay dc1a79a
MC: Make save-temp-labels imply UseNamesOnTempLabels
MaskRay 8bd6d36
[ARM] Override hasAndNotCompare (#145441)
AZero13 20fbbd7
[LV] Add support for cmp reductions with decreasing IVs. (#140451)
fhahn c5a49fb
[LAA] Add tests with 128 bit inductions and 128 bit pointers.
fhahn dcc9e36
[ARM] Add neon vector support for floor (#142559)
davemgreen dd02fb3
[AArch64] Fix stale +zcm target feature to +zcm-gpr64 (#146260)
tomershafir 2787759
[VPlan] Allow derived IVs and scalar-steps in narrowing interleave.
fhahn f21f2b4
[InstCombine] Create Icmp in canonical form (NFC) (#146266)
andjo403 267945b
[libc++][NFC] Refactored equality comparisons tests for `pair` and `e…
H-G-Hristov f5ed863
Revert "[VPlan] Allow derived IVs and scalar-steps in narrowing inter…
fhahn d2d5203
[clangd] Consistent precedence between `--header-insertion` and `Head…
MythreyaK 43ab5bb
[CodeGen] Use std::tie to implement a comparison functor (NFC) (#146252)
kazutakahirata 7138397
[Clang] Add __builtin_invoke and use it in libc++ (#116709)
philnik777 8d09927
MCInt: Change dump functions to accept MCContext instead of MCRegiser…
MaskRay 5fe40b9
MCExpr: Make print private
MaskRay 37ffe89
Reland [Driver] Add support for GCC installation detection in Baremet…
quic-garvgupt f5c62ee
[PHIElimination] Reuse existing COPY in predecessor basic block (#131…
guy-david b5cd49e
[mlir] Remove unused includes (NFC) (#146278)
kazutakahirata 40525fb
[NFC][docs][coro] Fix syntax & typos (#146282)
vogelsgesang a3a60e0
[clang-tidy] add new check: modernize-use-scoped-lock (#126434)
vbvictor fa05864
[clang-format] Make EndsInComma in ContinuationIndenter consistent (#…
owenca 8943036
Fix UAF in ARMConstantIslandPass.
qinkunbao 43f2a3c
[gn] port e34e02128ec5eb8
nico ed25d47
Reland [Driver] Add support for crtbegin.o, crtend.o and libgloss lib…
quic-garvgupt d0e8d84
[gn] port 3fdf46ad60f1 (RuntimeLibcalls.inc)
nico d808129
[gn build] Port 23f1ba3ee456
nico 347a5f4
[gn] port 23f1ba3ee456 (DebugInfo/DWARF/LowLevel)
nico b822a32
[VPlan] Fix crash when trying to narrow interleave group storing const.
fhahn 1f5f381
AMDGPU: Implement intrinsic/builtins for gfx1250 load transpose instr…
changpeng b62b58d
[OpenMP] Fix crash with duplicate mapping on target directive (#146136)
jtb20 75f359d
[MC] Remove an unnecessary cast (NFC) (#146276)
kazutakahirata 38df9eb
[docs] Fix a typo in llvm/docs/CMake.rst (#138639)
ur4t cd075a4
MCObjectStreamer: Deduplicate emitInstToData
MaskRay 2de5134
MCFragment: Add addFixup to replace getFixups().push_back()
MaskRay 613222e
[DAGCombiner] Remove `UnsafeFPMath` usage in `visitFSUBForFMACombine`…
paperchalice 9a6e068
[mlgo][regalloc] Fix after PR #131837 (#146297)
mtrofin e47d401
CodeView: Move MCCVDefRangeFragment storage to MCContext/MCFragment
MaskRay d4b5905
Add`final` specifier to the classop (#145977)
Jaddyen 678ccd5
[IR] Remove an unnecessary cast (NFC) (#146274)
kazutakahirata 72c0fc2
[LTO] Remove an unnecessary cast (NFC) (#146275)
kazutakahirata 42d94af
[Target] Use range-based for loops (NFC) (#146277)
kazutakahirata 59eaffe
[RISCV] Remove required features zvfhmin from vslideup/vslidedown
tclin914 a17f635
Reland [Driver] Fix link order of BareMetal toolchain object (#146291)
quic-garvgupt bb982e7
AMDGPU: support s_monitor_sleep on gfx1250 (#146293)
changpeng 2d94c08
Reland [Driver] Add option to force undefined symbols during linking …
quic-garvgupt 629126e
[clang][bytecode][NFC] Remove some dead code (#146287)
tbaederr 140e189
[KeyInstr] Add DISubprogram::keyInstructions bit (#144107)
OCHyams ed391f1
[Driver] Forward sysroot from Driver to linker in BareMetal ToolChain…
quic-garvgupt 7354123
[KeyInstr] Use DISubprogram's is-key-instructions-on flag at DWARF em…
OCHyams 57f7e14
[LoongArch] Pre-commit test for _BitInt(N)
Ami-zhang 8602204
[mlir][tensor] Relax input type requirement on `tensor.splat` (#145893)
zero9178 834c410
[Target] Prevent copying in loop variables (NFC)
DamonFool faefe7c
[flang] add option to generate runtime type info as external (#146071)
jeanPerier 597ee88
[Driver] Add support for `-m` flag to linker job of Baremetal toolcha…
quic-garvgupt b563e76
[AArch64] Improve scalar and Neon popcount with SVE CNT. (#143870)
rj-jesus 5220e4f
Speculative test tweak after ed25d473fb1b7
nico e0864b5
[libc++] Fix <charconv> not exporting std::errc (#146268)
philnik777 9fbde32
Revert "CodeView: Move MCCVDefRangeFragment storage to MCContext/MCFr…
DavidSpickett 179cc20
[libc++] Add missing _LIBCPP_NODEBUG in <__type_traits/invoke.h>
philnik777 6a120bf
[Hexagon] Remove unused flag from HexagonGenExtract(NFC) (#146310)
svs-quic 5c5bcd6
[gn build] Port 34b2e934ea9e
llvmgnsyncbot 22064ce
[gn build] Port 3f531552e66f
llvmgnsyncbot 96fc0b3
[gn build] Port a3a60e03e2bf
llvmgnsyncbot 7ec494e
[gn build] Port a64db49371f0
llvmgnsyncbot af82e14
[KeyInstr] Fully support mixed key/non-key inlining modes (#144103)
OCHyams b42c883
[clang] Build the Z3 mock module via CMake (#146284)
mgorny 473769e
[clang] [modules] Add err_main_in_named_module (#146247)
kish1n 2e7aa7e
[mlir][tosa] Add custom operand getters for select op (#145921)
lhutton1 1dfc3e8
[X86] Add test coverage to show failure to push freeze through saddo/…
RKSimon 338dee0
[NFC][libclc] Refactor _CLC_*_VECTORIZE macros to functions in .inc f…
wenju-he f226852
[X86] Add test coverage to show failure to push freeze through ssubo/…
RKSimon d0c1ea9
[InstCombine] Pull unary shuffles through fneg/fabs (#144933)
lukel97 47ecd18
Global string alignment (#142346)
dominik-steenken 24fd343
[lldb][test] TestMetadataRegisters.py: add missing include
Michael137 f8cb798
[RISCV] Integrate RISCV target in baremetal toolchain object and depr…
quic-garvgupt de6b8cd
[EarlyCSE] Add support for writeonly call CSE (#145474)
nikic f412842
[PHIElimination] Fix bug around $noreg assignment (#146320)
guy-david d7a3bdf
[PassBuilder][FatLTO] Expose FatLTO pipeline via pipeline string (#14…
nikic 5e732c0
[CLANG][AArch64] Add mfloat8_t support for more SVE load intrinsics (…
amilendra a72a0f4
[Clang][AArch64] Add mfloat8_t variants of Neon load intrinsics (#145…
amilendra 33c8d5c
[Clang][AArch64] Add FP8 variants of Neon store intrinsics (#145346)
kmclaughlin-arm 5186d4a
[NFC] [clang] Fix a test regression
ChuanqiXu9 3a7d608
[FatLTO] Relax checks for fatlto pipeline test
nikic c3f8dd1
[NFC][analyzer] Use %clang_analyze_cc1 consistently (#145895)
NagyDonat 7a3e555
[Clang][Sema] Require `BaseClass::` (not other classes) in member usi…
zwuis 6e6c61d
[InstCombine] Add explicit data layout to test
nikic 003145d
[Offload] Implement `olShutDown` (#144055)
RossBrunton be75ded
[KeyInstr][Clang] Copy ctor/assignment operator source atoms (#144346)
OCHyams b29fea6
[KeyInstr][Clang][NFC] Don't set -dwarf-use-key-instructions (#144115)
OCHyams a4647b2
[gn] port b42c8831d57a
nico e810c63
[gn build] Port f8cb7987c64d
llvmgnsyncbot a99c964
[AMDGPU] Add support for `v_cvt_f16_fp8` on gfx1250 (#146302)
shiltian 749c7c5
[AMDGPU] Add support for `v_cvt_f16_bf8` on gfx1250 (#146305)
shiltian eb1a80b
[DAG] Implement SDPatternMatch `m_SpecificScalarVT` and `m_SpecificVe…
zhaohuiw42 b9e4679
[DAG] canCreateUndefOrPoison - add handling for ADD/SUB/MUL overflow …
RKSimon 652630b
[ISel/RISCV] Fix fixed-vector [l]lrint lowering (#145898)
artagnon f01a793
[VPlan] Replace all uses of VF when EVL tail folding. NFCI (#146339)
lukel97 183acdd
[GlobalOpt] Revert global widening transform (#144652)
nikic d4fdfc3
[DA] Improve code in getSplitIteration (NFC) (#146137)
artagnon 51dfe28
[clang] odr-checker fix for conversion operators (#146153)
mizvekov a99fee6
[OpenACC][CIR] Implement 'exit data' construct + clauses (#146167)
erichkeane d7e23be
[lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (#146…
dlav-sc 10445ac
[libc] Efficiently implement 'realloc' for AMDGPU devices (#145960)
jhuber6 8c77191
[InstCombine] smin(smax(X, -1), 1) -> scmp(X, 0) and smax(smin(X, 1),…
AZero13 619f7af
[LAA] Clean up APInt-overflow related code (#140048)
artagnon 67e73ba
[Offload] Refactor device/platform info queries (#146345)
RossBrunton b0ff473
[LLVM] Change `ModulePass::skipModule` to take a const reference (#14…
jurahul d1ba269
[LLVM][Clang] Enable strict mode for `getTrailingObjects` (#144930)
jurahul 1cdc7f8
[clang] [Sema] Suggest [[noreturn]] for void functions that always th…
snarang181 44ec3e8
[clang][AST] Fix AST IgnoreUnlessSpelledInSource traversal nullptr de…
JonathanMarriott c00c5a3
[X86] Add test coverage to show failure to push freeze through CTLZ/C…
RKSimon 5ab3114
Expand annotation check for -Wunique-object-duplication on Windows. (…
DKLoehr 53102a3
[ExtractAPI] Format pointer types correctly (#146182)
snprajwal 00cdaa5
[clang][bytecode] Add `Descriptor::hasTrivialDtor()` (#146286)
tbaederr 425359a
[experimental] Ask copilot to check perf profile degradation (#146271)
mtrofin 6f7370c
[InstCombine] Pull vector reverse through fneg (#146349)
lukel97 545cdca
[SCCP] Improve worklist management (#146321)
nikic 8a5b97a
Revert "[clang] [modules] Add err_main_in_named_module (#146247)"
ChuanqiXu9 199c6ec
[RISCV] Add coverage for missed scalarization of gather/scatter base …
preames 4aaab69
[libc++] Fix wait_on_destruct.pass.cpp hanging sometimes (#146240)
EricWF 25e5010
[lldb] Delete unused variables in TestLoongArchEmulator.cpp.
jyknight 16dc6f6
[lldb] Document MCP support in LLDB (#145935)
JDevlieghere 18a0675
[bazel] Add gdb-scripts filegroup in llvm and mlir (#146358)
hashemthomas1 a1d8331
[AArch64] Change IssueWidth to 5 in AArch64SchedNeoverseN2.td (#145717)
simonwallis2 6bd9ff0
[ARM] Add neon vector support for round
davemgreen c79b685
Restrict tests in Transforms/InstCombine/SystemZ to SystemZ (NFC) (#1…
dominik-steenken a8f460d
[libc] implement sigsetjmp for thumb/thumb2/armv7-a (#138147)
SchrodingerZhu 04395be
MC: Merge MCFragment.h into MCSection.h
MaskRay 529508c
[DAG] canCreateUndefOrPoison - add handling for CTTZ/CTLZ nodes (#146…
RKSimon efc561c
[CodeGen] Remove an unnecessary cast (NFC) (#146380)
kazutakahirata 83b462a
[flang][CLI] Have the CLI hint the flag to disable a warning (#144767)
akuhlens dccc026
[flang][runtime] Allow INQUIRE(IOLENGTH=) in the presence of defined …
klausler 348002e
[flang] Check definability for logical INQUIRE specifiers (#144797)
klausler a93d843
[flang] Don't warn on (0.,0.)**(nonzero noninteger) (#145179)
klausler f3d5759
[flang] Skip over fixed form spaces when prescanning exponents & kind…
klausler 407542b
[flang] Process pointer component default initializers sooner (#145601)
klausler de7c2f2
[HLSL] Remove dead code in Type.cpp [NFC] (#146365)
s-perron 790bc5b
[flang][NFC] Remove inadvertently added source file (#146395)
klausler 7a33b70
[libc] wcstok implementation (#145989)
uzairnawaz 6a83a84
[IR] Remove an unnecessary cast (NFC) (#146381)
kazutakahirata 0494f93
[Basic] Drop const from a return type (NFC) (#146382)
kazutakahirata 36cf51d
[clang][bytecode] Classify variable initializer, not the decl (#146338)
tbaederr 01d0171
Address formatting mistake in libc++ test
EricWF b2b20ee
tsan: Support free_sized and free_aligned_sized from C23 (#144531)
jcking 2d825cc
[flang] Add new hints to expected warnings (#146399)
klausler 125dbe1
[OpenACC][CIR] 'update' construct lowering + a few clauses (#146378)
erichkeane 5548f4d
[LLDB][NFC] Refactor code extracting timestamp from StructuredData (#…
oontvoo 536ba87
[libomptarget] Add a test for OMP_TARGET_OFFLOAD=disabled (#146385)
ye-luo 233078f
[nfc][asan] clang-format for #145087
vitalybuka ba84d0c
[clang-doc] Precommit friends test (#146164)
evelez7 6a57af8
[clang-tidy] Add flag to specify an alternative to std::forward (#138…
DimitrijeDobrota 878d359
[mlir][vector] Avoid setting padding by default to `0` in `vector.tra…
fabianmcg 4662871
[IR][PGO] Verify the structure of `VP` metadata. (#145584)
mtrofin 5f91b69
[MLIR] Always emit setPropertiesFromParsedAttr() when hasCustomAssemb…
joker-eph 0f291e5
[clang-tidy] Add flag to specify an alternative to std::move in cppco…
DimitrijeDobrota 90da616
[flang] Use outermost fir.dummy_scope for TBAA of local allocations. …
vzakhari 96b9b2e
[Clang] Fix '-Wformat-overflow' FP when floats had field-width and pl…
vbvictor a68e447
[clang-doc] serialize friends (#146165)
evelez7 93849a3
[flang] Check for ultimate ALLOCATABLE component in LOCAL_INIT() (#14…
eugeneepshteyn 163a7e1
[mlir][LLVMIR][NFC] Remove duplicate getUnnamedAddrAttrName uses in o…
Jezurko 4bf0c6b
[libc][bazel] Added wchar functions to bazel (#146126)
sribee8 4c7d3e9
[STLForwardCompat] Implement llvm::type_identity (#146390)
kparzysz 81c9a1a
[libc][obvious] Fixed typos in some wchar headers (#146413)
sribee8 f205e35
[CIR] Upstream GenericSelectionExpr for ComplexType (#146265)
AmrDeveloper 026aae7
[VPlan] Infer reduction result types w/o accessing underlying phis.(NFC)
fhahn dcf8ec9
Reland "[MLGO][IR2Vec] Integrating IR2Vec with MLInliner (#143479)" (…
svkeerthy eb904e8
[lldb] Fix link syntax in docs/use/mcp.md
JDevlieghere 56ef00a
[X86][GlobalISel] Fix RegBank issue for G_FABS (#145674)
mahesh-attarde 0745eb5
[IR2Vec] Scale embeddings once in vocab analysis instead of repetitiv…
svkeerthy 56739f5
[Analysis] Fix a warning
kazutakahirata f4cecfe
[flang][cuda] Bring PARAMETER arrays into the GPU module (#146416)
clementval 0d1392e
[MachineOutliner] Remove LOHs from outlined candidates (#143617)
ellishg 1eb7954
[lldb] Correctly restore the cursor column after resizing the statusl…
JDevlieghere d599bde
[AMDGPU] Autogen checks for test (#146421)
jrbyrnes 59a7185
[VPlan] Truncate/Extend ComputeReductionResult at construction (NFC).…
fhahn 6896d8a
[RISCV][MC] Support Base P non-GPR pair instructions (#137927)
realqhc f16983f
[flang][acc] Ensure fir.class is handled in type categorization (#146…
razvanlupusoru ff4faaa
[mlir][examples] Fix deprecation warnings for `ArrayRef(std::nullopt)…
kuhar 92b5095
[NFC][TableGen] Capitalize `to` in `UseFnTableInDecodetoMCInst`. (#14…
jurahul 12409a1
[DirectX] Implement `memcpy` in DXIL CBuffer Access pass (#144436)
Icohedron d2500e6
[pgo] add means to specify "unknown" MD_prof (#145578)
mtrofin a3c8165
[flang][acc] Fix dialect dependencies (#146431)
razvanlupusoru ad7d675
[BOLT] Refactor mapCodeSections(). NFC (#146434)
maksfb 8d9cdb6
[Clang][LoongArch] Fixed incorrect _BitInt(N>64) alignment (#145297)
Ami-zhang a4f637d
[MLGO] Fix feature iteration using FeatureMap.size() instead of Numbe…
svkeerthy 70db191
[RISCV] Add LLVM IR intrinsicis vrgatherei16/vslideup/vslidedown supp…
tclin914 6620db5
[NFC][MLGO] Fix indentation in MLGO.rst (#146444)
svkeerthy 6323541
[LLD][ELF] Skip non-SHF_ALLOC sections when checking max VA and max V…
Enna1 24c4bba
[bazel] Quick fix for #145584 (Core deps ProfileData/InstrProf.h)
chapuni 9438048
[IR2Vec] Simplifying creation of Embedder (#143999)
svkeerthy a2dc64c
[NFC][MLGO] Convert notes to proper RST note directives in MLGO.rst (…
svkeerthy 950ce9f
trim RUn statements
AdamGlass 8cf3b98
[Analysis] Fix a warning
kazutakahirata 6b0d0f2
__sys builtin support
AdamGlass 4370e7e
Address feedback
AdamGlass fd549f4
trim RUn statements
AdamGlass 9e4082f
fix test
AdamGlass 3816751
Merge branch 'sys-builtin-clean' of https://github.com/AdamGlass/llvm…
AdamGlass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// REQUIRES: aarch64-registered-target | ||
|
||
// RUN: %clang_cc1 -triple arm64-windows -fms-compatibility -S \ | ||
// RUN: -o - %s | FileCheck %s -check-prefix CHECK-ASM | ||
|
||
// RUN: %clang_cc1 -triple arm64-darwin -fms-compatibility -S \ | ||
// RUN: -o - %s | FileCheck %s -check-prefix CHECK-ASM | ||
|
||
// RUN: %clang_cc1 -triple arm64-windows -fms-compatibility -emit-llvm \ | ||
// RUN: -o - %s | FileCheck %s -check-prefix CHECK-IR | ||
|
||
// RUN: %clang_cc1 -triple arm64-darwin -fms-compatibility -emit-llvm \ | ||
// RUN: -o - %s | FileCheck %s -check-prefix CHECK-IR | ||
AdamGlass marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
// From winnt.h | ||
// op0=1 encodings, use with __sys | ||
#define ARM64_SYSINSTR(op0, op1, crn, crm, op2) \ | ||
( ((op1 & 7) << 11) | \ | ||
((crn & 15) << 7) | \ | ||
((crm & 15) << 3) | \ | ||
((op2 & 7) << 0) ) | ||
|
||
// | ||
// Sampling of instructions | ||
// | ||
#define ARM64_DC_CGDSW_EL1 ARM64_SYSINSTR(1,0, 7,10,6) // Clean of Data and Allocation Tags by Set/Way | ||
#define ARM64_IC_IALLU_EL1 ARM64_SYSINSTR(1,0, 7, 5,0) // Instruction Cache Invalidate All to PoU | ||
#define ARM64_AT_S1E2W ARM64_SYSINSTR(1,4, 7, 8,1) // Translate Stage1, EL2, write | ||
#define ARM64_TLBI_VMALLE1 ARM64_SYSINSTR(1,0, 8, 7,0) // Invalidate stage 1 TLB [CP15_TLBIALL] | ||
#define ARM64_CFP_RCTX ARM64_SYSINSTR(1,3, 7, 3,4) // Control Flow Prediction Restriction by Context | ||
|
||
// From intrin.h | ||
unsigned int __sys(int, __int64); | ||
|
||
void check__sys(__int64 v) { | ||
__int64 ret; | ||
|
||
__sys(ARM64_DC_CGDSW_EL1, v); | ||
// CHECK-ASM: msr S1_0_C7_C10_6, x8 | ||
// CHECK-IR: %[[VAR:.*]] = load i64, | ||
// CHECK-IR-NEXT: call void @llvm.write_register.i64(metadata ![[MD2:.*]], i64 %[[VAR]]) | ||
|
||
__sys(ARM64_IC_IALLU_EL1, v); | ||
// CHECK-ASM: msr S1_0_C7_C5_0, x8 | ||
// CHECK-IR: %[[VAR:.*]] = load i64, | ||
// CHECK-IR-NEXT: call void @llvm.write_register.i64(metadata ![[MD3:.*]], i64 %[[VAR]]) | ||
|
||
__sys(ARM64_AT_S1E2W, v); | ||
// CHECK-ASM: msr S1_4_C7_C8_1, x8 | ||
// CHECK-IR: %[[VAR:.*]] = load i64, | ||
// CHECK-IR-NEXT: call void @llvm.write_register.i64(metadata ![[MD4:.*]], i64 %[[VAR]]) | ||
|
||
__sys(ARM64_TLBI_VMALLE1, v); | ||
// CHECK-ASM: msr S1_0_C8_C7_0, x8 | ||
// CHECK-IR: %[[VAR:.*]] = load i64, | ||
// CHECK-IR-NEXT: call void @llvm.write_register.i64(metadata ![[MD5:.*]], i64 %[[VAR]]) | ||
|
||
__sys(ARM64_CFP_RCTX, v); | ||
// CHECK-ASM: msr S1_3_C7_C3_4, x8 | ||
// CHECK-IR: %[[VAR:.*]] = load i64, | ||
// CHECK-IR-NEXT: call void @llvm.write_register.i64(metadata ![[MD6:.*]], i64 %[[VAR]]) | ||
} | ||
|
||
// CHECK-IR: ![[MD2]] = !{!"1:0:7:10:6"} | ||
// CHECK-IR: ![[MD3]] = !{!"1:0:7:5:0"} | ||
// CHECK-IR: ![[MD4]] = !{!"1:4:7:8:1"} | ||
// CHECK-IR: ![[MD5]] = !{!"1:0:8:7:0"} | ||
// CHECK-IR: ![[MD6]] = !{!"1:3:7:3:4"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.