public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Li, Yicheng" <yli137@vols.utk.edu>
To: "jit@gcc.gnu.org" <jit@gcc.gnu.org>
Subject: Question on libgccjit
Date: Mon, 20 Mar 2023 19:16:37 +0000	[thread overview]
Message-ID: <BEDE839C-AC66-48C0-8A98-0E788FFA2AA3@vols.utk.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

Hi,

How to do pointer arithmetic in libgccjit?
I created a pointer type (char *) and an integer type (int or size_t or long).
When I use gcc_jit_context_binary_op with GCC_JIT_BINARY_OP_PLUS, it’s giving me error as mismatching types of (char*) and (int).
Is pointer arithmetic viable in libgccjit?

Thank you
Yicheng Li

             reply	other threads:[~2023-03-20 19:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-20 19:16 Li, Yicheng [this message]
     [not found] <4895236c-a56f-a8aa-d581-476e3072f72c@starynkevitch.net>
     [not found] ` <AFDF0F71-5CB3-47A0-95FF-2E23877F3DE7@vols.utk.edu>
     [not found]   ` <f942f395-42b5-18cd-45a8-433437fcf752@starynkevitch.net>
2023-03-20 19:38     ` Li, Yicheng
2023-03-20 23:23       ` David Malcolm

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=BEDE839C-AC66-48C0-8A98-0E788FFA2AA3@vols.utk.edu \
    --to=yli137@vols.utk.edu \
    --cc=jit@gcc.gnu.org \
    /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).