public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: Palmer Dabbelt <palmer@dabbelt.com>
Cc: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com,
	Kito Cheng <kito.cheng@gmail.com>,
	christoph.muellner@vrull.eu, jinma.contrib@gmail.com
Subject: Re: [PATCH] RISC-V: Handle no_insn in TARGET_SCHED_VARIABLE_ISSUE.
Date: Fri, 11 Aug 2023 07:29:35 -0600	[thread overview]
Message-ID: <12fb5088-3f28-0a69-de1e-f387371a5eb2@gmail.com> (raw)
In-Reply-To: <mhng-1c89232e-63d0-4002-bbf1-2756a7aba371@palmer-ri-x1c9a>



On 8/10/23 21:45, Palmer Dabbelt wrote:
> 
> OK, that seems like the way to go.  I still think it's likely we'll need 
> to split up these types more, but that's something we can only deal with 
> when there's HW that behaves oddly.
Yea, but I think we can fault this in as problematic hardware arrives.


>> No, it's really a target issue.  And what I was suggesting is that we
>> get to the point where we can enable the currently #if 0'd assert so
>> that if we introduce insns without an associated type, we get a nice
>> early warning.  I wasn't up for tackling that this week ;-)
> 
> I was thinking of some sort of "TARGET_ALLOWS_UNKNOWN_INSNS" hook, but 
> poking around the uses that might not be meaningfully simpler than just 
> rejecting these in the backend -- certainly simpler if we're just 
> worried about RISC-V ;)
Not all ports have types at all.  Some use types for things other than 
scheduling.  It'd be a huge can of worms.

> 
> This seems pretty mechinacial: just scrub through our MDs to check for 
> any un-typed insns, then add the assert and fix the failures.  You're 
> more than welcome to have at it, but LMK if you want me to try and find 
> some time for someone to do it -- certainly seems like a good way for 
> someone new to dig in a bit.
Yes, definitely mechanical.  And yes, it's a good way for someone to 
start to get familiar with these bits -- I used the lack of types on 
some of the bitmanip insns to help ramp up Raphael and one of the RAU 
guys in this space.

Jeff

  reply	other threads:[~2023-08-11 13:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-29 11:01 Jin Ma
2023-05-29 12:46 ` Jeff Law
2023-08-09 19:56   ` Jeff Law
2023-08-11  2:12     ` Jin Ma
2023-08-11  2:30       ` Palmer Dabbelt
2023-08-11  3:19         ` Jeff Law
2023-08-11  3:45           ` Palmer Dabbelt
2023-08-11 13:29             ` Jeff Law [this message]
2023-08-14 20:33               ` Edwin Lu
2023-08-14 22:06                 ` Jeff Law
2023-08-11 13:22       ` Jeff Law

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12fb5088-3f28-0a69-de1e-f387371a5eb2@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=christoph.muellner@vrull.eu \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jinma.contrib@gmail.com \
    --cc=kito.cheng@gmail.com \
    --cc=palmer@dabbelt.com \
    --cc=richard.sandiford@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).