[llvm-dev] variable instruction latency using itineraries

Hal Finkel via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 5 12:23:41 PST 2016


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


More information about the llvm-dev mailing list