[LLVMdev] About clock and wait instruction

Chris Lattner sabre at nondot.org
Thu Dec 18 20:10:01 PST 2003

On Fri, 19 Dec 2003, Yueqiang wrote:

> In high level languge there are usually have time and sync instruction,
> to handle async and sync operation.
> I want to know how LLVM take an count of these.

I'm not sure exactly what 'time' and 'sync' operations you're talking
about, or what languages support them.   However, LLVM is designed to make
it trivial to interface to libraries and routines written in other
languages.  This means that (even if LLVM should be extended to support
these operations eventually) you can always write them in assembly or
whatever, then call them from LLVM.

Note however that LLVM is _not_ a high-level language, and in fact we do
not explicitly support _many_ features of HLLs directly in LLVM.  We use a
strategy of representing the key components of the high-level ideas using
low-level primitives that can be used for a variety of purposes.  If you
describe what the time/sync operations are, maybe I can sketch out a
suggested mapping for you.



More information about the llvm-dev mailing list