From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id EEC4F3858D28 for ; Tue, 3 Oct 2023 09:09:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EEC4F3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-690bf8fdd1aso471321b3a.2 for ; Tue, 03 Oct 2023 02:09:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1696324183; x=1696928983; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=XSZPNehAFS7vmdridQvzjc/Zn8jJk40B9towufB7YoQ=; b=FbRzdIN/NRXWCbF7OjvwURj2ckm721e9l/Hj1ghdaiaZ3B/N5fEPjBE1j8QNGu+8ok +EeOIz8BErUakMzJzbAb/vdqTgwnskoXIT8vkMWeRXccRkAt5VW0ThIIJOZ3JeGqgA/1 IcTT0NIHMKz2ec0BUv6m+DQH9r7M5cBrTHxRuzavx2R+SVxukmZ5z0VGNmOGrxMzOxO/ G9G+HwiEgXsh5maUWgN0t0XZwB45Qh0W1huO4zwpPGTAkSJGPmzfksHhW+ZH8gtEDocl vwM/uG1zBOL5BSr/VOKaIW2XmRyOBhNE3LjvZFfaHUn1na9Qtjd9YLEXh3ZW9JBXKrS1 YLyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696324183; x=1696928983; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XSZPNehAFS7vmdridQvzjc/Zn8jJk40B9towufB7YoQ=; b=uESYkh6s2LjztPHnL/DWRVvgqi6H6C2jhdWcS/Qht0qgaCLJ/3GTXpuWZRX0Wf/4ic j7Xcj5r7zYYdKd5jCqUhjhWMxttuFhP/mbJbYnaWvdgLSu0ekPQsPCB41/L0gOdjMVJI 5eSjyDX39F3Fs/KA9DFZoo0O0hBRCSXbJmri0oVObLS3X/g8G+2X7jDzYwT4RpWQhz+J 250ipr/HcT27oceEgXEsOP34f5EDEATVa+3TjpFQiDgTHGrhciY4iqlJ3b9dlzBZbH8e yJp0rFO3QM8vpDZeLrygDUpgymfVBWRH7fV6tLnZKbsIqIdvHLCBgniZhUC3IA2DbbBm OoMA== X-Gm-Message-State: AOJu0YzrlbeQ4TVsgdgEAEE8ofkjnU00Awk+egz1t+WnqD1IWuhiRoW9 kyCi5v/Xej1uD/trtgvjlEJBL37/GKUDQkNXUDOZUAADYm6A3nk5LtB89Haa7P3Fo2cGlj/EcH/ gsppovwkSii7WtAU2lH5aZVetFZw+X1eCzIorj5XWOMU3btSqjGC+eMlwuhtM0xobVqLreZo8V6 Mbymc= X-Google-Smtp-Source: AGHT+IE8hG+4PnWOy5zsxEp5ugdR92dRaDvv82R2ZN/yNcGfPBJQaAOc6xhp4EzooWMGglk2rcCVBg== X-Received: by 2002:a05:6a00:80e:b0:666:e1f4:5153 with SMTP id m14-20020a056a00080e00b00666e1f45153mr14192386pfk.0.1696324183107; Tue, 03 Oct 2023 02:09:43 -0700 (PDT) Received: from SiX1E.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id fn25-20020a056a002fd900b00692b6fe1c7asm892679pfb.179.2023.10.03.02.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 02:09:42 -0700 (PDT) From: Kito Cheng To: gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, palmer@dabbelt.com, jeffreyalaw@gmail.com, rdapp@ventanamicro.com, juzhe.zhong@rivai.ai Subject: Date: Tue, 3 Oct 2023 17:09:30 +0800 Message-Id: <20231003090934.12182-1-kito.cheng@sifive.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_BLANKSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Kito Cheng Reply-To: Subject: [PATCH v1 0/4] RISC-V target attribute In-Reply-To: This patch set implement target attribute for RISC-V target, which is similar to other target like x86 or ARM, let user able to set some local setting per function without changing global settings. We support arch, tune and cpu first, and we will support other target attribute later, this version DOES NOT include multi-version function support yet, that is future work, probably work for GCC 15. The full proposal is put in RISC-V C-API document[1], which has discussed with RISC-V LLVM community, so we have consistent syntax and semantics. [1] https://github.com/riscv-non-isa/riscv-c-api-doc/pull/35