Recent submissions

Comment · 10 months ago
Possibly -ffreestanding will help
Comment · 10 months ago
The _fltused handling is quite crude: https://github.com/llvm/llvm-project/blob/5cfd02f44a43a2e2a0...

TLDR it's going to emit the reference if it's targeting MSVC and there's any float typed reference. You'd need to do something to avoid it, other than avoiding float types.

Presumably you are compiling for the MSVC ABI. Trying to plug your own runtime that doesn't behave exactly as the MSVC scheme isn't going to just work out of the box. The compiler has to know the details of the ABI you are targeting, if you're doing your own thing the compiler would need to treat that as a separate ABI. I'm not sure there's a triple now that means MSVC-like-freestanding.

The same logic applies on the clang driver side. The ABI expects to link those libraries, so it will.

Comment · 11 months ago
I'd go so far as to say it's the exact opposite. It's faster and easier to change the hardware than the software.
Comment · 2 years ago
clang does have pragma clang fp to enable a subset of fast math flags within a scope
Comment · 7 years ago
This couldn't have a worse name. It's already used inside clang, and llvm. Searching "llvm CodeGen" will never find this.
Comment · 8 years ago
Chrome is available on the App Store
Comment · 11 years ago
It's really not. It's barely an abstraction over LLVM IR
Comment · 12 years ago
I live on El Camino and frequently take the bus. It's a 40 minute walk to the nearest caltrain station
Comment · 12 years ago
The keurig actually does have tea pods, which produce pretty awful tea
Comment · 12 years ago
clBLAS
Comment · 12 years ago
There is an OpenCL profiler for AMD, and library equivalents for those in clBLAS / clFFT
Comment · 12 years ago
There isn't really anything fundamentally that would make CUDA faster that OpenCL. There aren't any huge semantic differences between them.
Comment · 12 years ago
No, unfortunately front ends still need to be aware of some of the ABI details of the target to produce the IR for it.
Comment · 12 years ago
I used to use it before working on it was my job.
Comment · 13 years ago
But the 64-bit pointer support isn't there yet, so it's not super useful. You can't use it all within the same program

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton