From patchwork Fri Feb 16 06:54:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Hawkins X-Patchwork-Id: 1899889 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=obs-cr.20230601.gappssmtp.com header.i=@obs-cr.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=Z+C/BGpR; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TbjP64X1nz23hy for ; Fri, 16 Feb 2024 17:55:22 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3CBD03858281 for ; Fri, 16 Feb 2024 06:55:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by sourceware.org (Postfix) with ESMTPS id 3B7B43858408 for ; Fri, 16 Feb 2024 06:54:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3B7B43858408 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=obs.cr Authentication-Results: sourceware.org; spf=none smtp.mailfrom=obs.cr ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3B7B43858408 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::f35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708066500; cv=none; b=sK1EOkZD78ilml7XWUsZgjf1WtB8fKKWKJ+Ijuk9c20QHkkZ7406wKgY7XAbKnes+BCEW/nAF85neq0wTbelQ0/5iM+xaosTG5wn7mZXa98CQCAMzvqN+hvVGC0ihrNdgSHdJrlb0qoIyLd/vSg008pl+cdaj/8ojLjPKYWbIrc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708066500; c=relaxed/simple; bh=P3my0nC49xOm5Ncobykdy0r1rBUNyJXldFBU8NeQtkg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=G9e4Bs7xm7rYR9cYVUhT6/3vXOYXUKiZTJVtNPIHClVGtmiVLC/hRP+sJP/cLrrTBCmWS10KuGrk1DIyTN/y8dKsE6d+yVEWpD2i5LdzZ/OSdsOJCblBfQnVPHom+GyBTNq6xwvEVVuz6qwgauQagUByHSnBe0QjRAml0CKROoY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-6861538916cso9918286d6.3 for ; Thu, 15 Feb 2024 22:54:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=obs-cr.20230601.gappssmtp.com; s=20230601; t=1708066497; x=1708671297; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HaNAK8F84eDHlJpx+nCbfLxkAhoaxfI7WsIoF0ZDp18=; b=Z+C/BGpRw8KH7wphXfu0fdUVHQ+rbWFi9zq1iO2/Uz59owdw3y/ShvSBfqeTLqldld bKD+LxT1NQzqk76sG8REOmu1d2mUvGbpPGrjYhufXo6XYJbwvmYSQgvyTBBMds7ImkQY Xly3mxVz/svTWXubGbG1gmTAZ2uZQaWJE5BxNztP4P2kP5SdOv/RkrONpEZz78X1cwNU D3TyUFKTIU8LGcTkWPqqr+D+8pDbcif0s8AwwcIa6U5hFKNmnLPFyAsq7LFCiDkr/P/N Il2ckTBMdnEJW+9y7ldLsEvld+j1DlLmDd0kYuQS7LWKOKlWVzJNsU8LhUiuEgPvcBW0 a7IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708066497; x=1708671297; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HaNAK8F84eDHlJpx+nCbfLxkAhoaxfI7WsIoF0ZDp18=; b=ZUJylJgKNKIvg77va8EgiuZcvrxz6L2pdmzE0QvcIWmQoN28W6CP7wTEZv0b6eQuqV ykxdQlnm78nva8Zaz0X1YWXsEacT9emonj4faub25fUteEn91xrqaQ/kH7ndAKKKIn60 1Pdqdunjo1Ye7zwK3rThij+ll43fu2Sybr8LWh8wbBfAMfHSRy5h4qaibY5dv+mWIuVI 4bYuePB9nMtLj/C0iaCZG44g+UaVFB+paBIQaGr+ozljCzp33pKY1Nt+YKBquNRIU//R bE0sHJuTqAB6qOGj15Czu9+T8UoxKQPVW9ce0jbsMBKYydB9Y5clF+LMHvKobgc00Jx2 863Q== X-Gm-Message-State: AOJu0YyVLEjDn7O4/jJ5UV2MmHmkmDYI8UuNR2bdjBE+/9/3KTx7YwkI cCKeixaKgEqK7IYDVeODvsZETcYQAC2l+Pp4aukc0XYeUX/Iwo3Wl2aopMGrASCVbIPrSK/44X3 G X-Google-Smtp-Source: AGHT+IGfwvSTOs44ddbsx2rqv9UOeLnOQpRucK8VlEy1HnQGnXZqWHW6d7AnItThpMhiOJjoy4IlAw== X-Received: by 2002:a05:6214:e61:b0:68f:1067:ffa1 with SMTP id jz1-20020a0562140e6100b0068f1067ffa1mr5072844qvb.19.1708066497247; Thu, 15 Feb 2024 22:54:57 -0800 (PST) Received: from borderland.rhod.uc.edu ([129.137.96.2]) by smtp.gmail.com with ESMTPSA id me6-20020a0562145d0600b0068f128fc550sm1453256qvb.131.2024.02.15.22.54.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:54:56 -0800 (PST) From: Will Hawkins To: gcc-patches@gcc.gnu.org Cc: Will Hawkins Subject: [PATCH] bpf: Add documentation for the -mcpu option Date: Fri, 16 Feb 2024 01:54:54 -0500 Message-ID: <20240216065454.986529-1-hawkinsw@obs.cr> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Add documentation describing the meaning and values for the -mcpu command-line option. Tested for bpf-unknown-none on x86_64-linux-gnu host. gcc/ChangeLog: * config/bpf/bpf.opt: Add help information for -mcpu. Signed-off-by: Will Hawkins --- gcc/config/bpf/bpf.opt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/bpf/bpf.opt b/gcc/config/bpf/bpf.opt index bc5b2220116..acfddebdad7 100644 --- a/gcc/config/bpf/bpf.opt +++ b/gcc/config/bpf/bpf.opt @@ -77,9 +77,11 @@ Enable signed move and memory load instructions. mcpu= Target RejectNegative Joined Var(bpf_isa) Enum(bpf_isa) Init(ISA_V4) +Select the eBPF ISA version to target in code generation. Enum Name(bpf_isa) Type(enum bpf_isa_version) +Valid ISA versions (for use with the -mcpu= option) EnumValue Enum(bpf_isa) String(v1) Value(ISA_V1)