Affiliations
Projects
Maintains
Contributes to
14,193 commitssource: github.com ↗✓ verified
14,145 commitssource: github.com ↗✓ verified
Talks & podcasts
WG21 papers
Blog posts
Other activity
- Merged PR[ARM] Add 'generic' to fillValidCPUList
Matches the special case in isValidCPUName.
LLVM#244526 · by topperc - Merged PR[RISCV] Remove RVE specific array from getArgGPRs by slicing the front of the full array.
The RVE array is a prefix of the full array. We can take the front. This requires hardcoding the sizes, but these arrays aren't expected to change so I don't think that's a maintenance issue.
LLVM#244770 · by topperc - Merged PR[RISCV] Remove repeated calls to getFastCCArgGPRs. NFCLLVM#244756 · by topperc
- Merged PR[RISCV] Rewrite scratch register search in LowerKCFI_CHECK to avoid incrementing past X31.
We don't know where X31 is in the register list, we really shouldn't look at values after it. Use a list of scratch registers instead of incrementing the register id. This allows us to check when we we've reached the end of the array.…
LLVM#240941 · by topperc - Merged PRReland "[RISCV] Make clang's -mcpu=help and -mtune=help accurate for RISC-V."
With the minimal fix for flang which shares the Options.td, but not the other code. Original message: Clang has multiple -mtune only CPU names like -mtune=sifive-7-series. These should not be printed by -mcpu=help. There also RV32 and RV64…
LLVM#244736 · by topperc - Merged PR[RISCV] Add command line options to disable register overlap for vector indexed load for SiFive erratum
If a trap occurs on an element other than 0, some SiFive cores will write a garbage value to that element and all active elements after it in the destination register before running the trap handler. This is normally allowed by the spec if…
LLVM#224739 · by topperc - Merged PR[RISCV][P-ext] Add scalar merge C intrinsics
Use (~rd & rs1) (rd & rs2) and rely on the backend to select it to merge. Assisted-by: Claude
LLVM#239119 · by topperc - Merged PR[RISCV] Make clang's -mcpu=help and -mtune=help accurate for RISC-V.
Clang has multiple -mtune only CPU names like -mtune=sifive-7-series. These should not be printed by -mcpu=help. There also RV32 and RV64 only CPUs. Previously we used the -mcpu=help from LLVM's MC layer to print the names, but it doesn't…
LLVM#243697 · by topperc - Merged PR
- Merged PR[DAGISel] Add OPC_SwitchChildInteger to dispatch on an integer child
When every option of a Scope starts with a CheckChildInteger of the same child, convert it to a switch like SwitchOpcode/SwitchType. This is common for INTRINSIC_WO_CHAIN, where each pattern starts by checking the intrinsic ID in child 0.…
LLVM#237647 · by topperc - Merged PR[RISCV] Sort the CPU list returned by fillValid(Tune)CPUArchList
This puts vendor tune CPU names with their regular CPU names. This will also affect the output of
LLVM#243708 · by topperc - Merged PR[RISCV][GlobalISel] FP Info implementation for RISC-V.
Enable extended LLTs for RISC-V. This patch was written almost entirely by AI. One of the obvious regressions is extra fmv.x.w / fmv.w.x pairs in tests like half-convert.ll. I'll see about fixing it, but probably in a separate PR.…
LLVM#243299 · by topperc - Merged PR[RISCV][P-ext] Unroll v2i32 vselect to and/not/or on RV32.
Also unroll non-splat v2i32 sshlsat to avoid regression. If we make vselect custom without this, the v2i32 sshlsat gets expanded to vector operations that then get scalarized. Since we support i32 sshlsat, we should use that directly.…
LLVM#243654 · by topperc - Merged PR[RISCV] Use fcvt.w(u).s for (i32 (fp_to_(s/u)int (f16/bf16 X)) even when f16/bf16 isn't a legal type.
Previously we emitted fcvt.l(u).w. We can't convert f16/bf16 directly to i32 so we emit a libcall to convert to f16/bf16 to f32, then convert f32 to integer. With Zfhmin/Zfbfmin/Zhinxmin the f16->f32 libcall is an instruction. We should…
LLVM#243664 · by topperc - Merged PR[RISCV][P-ext] Recognize merge when the mask is constant.
If the mask is a constant, we will likely have (or (and X, C), (and X, ~C)). The isel pattern match expect to see a not operation so we will miss this pattern. Add a DAGCombine to detect the inverse constants and form a RISCVISD::MERGE.…
LLVM#241110 · by topperc