From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id F143D3857402 for ; Wed, 18 May 2022 10:23:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F143D3857402 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cusat.ac.in Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cusat.ac.in Received: by mail-oi1-x22f.google.com with SMTP id n24so2073107oie.12 for ; Wed, 18 May 2022 03:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cusat-ac-in.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=HE658lcKdevNU+Hrp5jDY+omxlOwOioXA5W83b4uq5k=; b=LSwL4dA/iv3gStnsafFPhBToDLDuAxcA+5aQ/HDWCkRR0aJHedUUWZFyaPmpQWmrae SCbN5J+8aRYQaG2TtDm9C2oGNeHfZ0N9FH3mFGPw438d/2mX6A5GRktneKJ1zb2I+LHf 6pJ7vxYmUG8olSejwYcJ3j+WayQNP9kDnexfYX2lqqr83ckxsYNBAwA/Dng9SLDe1gZg tYEhyE6hEFufLwh71K9f18NA5qdqG8h3fKWHYPoXIr+kjdZTp7YHrLyQjegGkgIlfBnZ is8znFGlvuK77Ehm+zwCmwiRSL0kjO/+s9V+Jpwlsvit5dJh7/qupACm9RL+3Hee6x/c 1a/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HE658lcKdevNU+Hrp5jDY+omxlOwOioXA5W83b4uq5k=; b=RoMMC9pzAXFtCicdsiZq8m1ImsUebO3yWApng6oK0JhiTwXrnlZj/n8kEmJVyq6+9y rRrRVcHQIg1kKXQ1kSvlPa3bk442bdV97snjVQe4NP/ZN51RkauaxRTX+XU4/BIBQLk0 OWOxkauN/mdcVqPME2XoDAd02aCZSSc9ZqMaWqoAgAA4Q7sUrI2S8NKu4BPtICxU8sqN yPrG9ZKYNAHaM493ESaPI8ZaGYE7M1Sl0pjhyJ2AnQgjVVWPDRI+k86BGw2pfaW8sL/O Ikoy+KkUsWryf14aynRaUdnaUogMP3ESGYuPzOUkq3zo25uthtwVKd1msFKgEMmNMsM4 nV1w== X-Gm-Message-State: AOAM532zCocTW5c0+I7PsnSbU1eesrBVYamHQ2Wr0ges9jHNNswwa9qc XrBVViM6KfP4Y8iUCxQOcMRCarwDGMzjgQtso+LVnyLG+revoRWIXAA7p/4AQbsYO+3ZP3L6+MQ JwimrSDmiDjlu6KbqYqNgjZSNa+Y= X-Google-Smtp-Source: ABdhPJy4xMuTefV/105LV+Ly7MiJcCIb6eoJ/yrs/zKE72csU7RcVNA4AZ1fEMofblZS1PqqUxuZSns6Y6pyTSh0B9E= X-Received: by 2002:a05:6808:148c:b0:326:915a:1dc with SMTP id e12-20020a056808148c00b00326915a01dcmr12610045oiw.254.1652869421836; Wed, 18 May 2022 03:23:41 -0700 (PDT) MIME-Version: 1.0 From: RICHU NORMAN Date: Wed, 18 May 2022 15:53:30 +0530 Message-ID: Subject: How can I add comments to files generated in rtl dump? To: gcc@gcc.gnu.org X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2022 10:23:47 -0000 Hi, I have added the new instruction in opcode and invoked it using asm_volatile .The new instruction is generated in the object dump. Now I wrote an RTL template for the same instruction in a .md file and some cost value calculation in cfile.Then I run the sample c code that invokes the instruction defined in .md file. I examined the files generated in -fdump-rtl-all. But the added instruction is not generated . *How can I add comments to files generated in rtl dump?* I have added fprintf (dump_file, "Test hello world\n"); to *gcc/cfgrtl.cc *and observed *.expand file .But I could not find the test word in that file . -- Richu Norman Research Scholar Department of Computer Science Cochin University of Science and Technology Ph : (+91)-8848455627