Rail Shafigulin via llvm-dev
2016-Jan-04 21:27 UTC
[llvm-dev] variable instruction latency using itineraries
It it possible to specify an instruction latency in the itinerary through a command line option? We have several options for a hardware divider which have different latencies and it would be nice if I could specify it through a compiler option rather than changing the value in the code and recompiling llvm every time? Any help is appreciated. -- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160104/1dab9b55/attachment.html>
Hal Finkel via llvm-dev
2016-Jan-05 20:23 UTC
[llvm-dev] variable instruction latency using itineraries
Hi Rail, I believe that your target can override getInstrLatency/getOperandLatency in your TargetInstrInfo subclass and add the behavior you desire. -Hal ----- Original Message -----> From: "Rail Shafigulin via llvm-dev" <llvm-dev at lists.llvm.org> > To: "llvm-dev" <llvm-dev at lists.llvm.org> > Sent: Monday, January 4, 2016 3:27:06 PM > Subject: [llvm-dev] variable instruction latency using itineraries > > It it possible to specify an instruction latency in the itinerary > through a command line option? We have several options for a > hardware divider which have different latencies and it would be nice > if I could specify it through a compiler option rather than changing > the value in the code and recompiling llvm every time? > > Any help is appreciated. > > -- > Rail Shafigulin > Software Engineer > Esencia Technologies > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Hal Finkel Assistant Computational Scientist Leadership Computing Facility Argonne National Laboratory
Rail Shafigulin via llvm-dev
2016-Jan-05 23:35 UTC
[llvm-dev] variable instruction latency using itineraries
On Tue, Jan 5, 2016 at 12:23 PM, Hal Finkel <hfinkel at anl.gov> wrote:> Hi Rail, > > I believe that your target can override getInstrLatency/getOperandLatency > in your TargetInstrInfo subclass and add the behavior you desire. > > -HalThanks!!! -- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160105/ef97a6da/attachment.html>