https://github.com/halide/Halide
Raw File
Tip revision: 987f53163ce014cb5df3f7d7b498b8cd77e93073 authored by Andrew Adams on 24 March 2021, 00:08:17 UTC
Remove buggy deinterleave misfeature
Tip revision: 987f531
prefetch.cpp
#include "HalideRuntime.h"

extern "C" {

// These need to inline, otherwise the extern call with the ptr
// parameter breaks a lot of optimizations, but needs to be WEAK
// so that Codegen_LLVM can find an instance of the Function to insert.
WEAK_INLINE int _halide_prefetch(const void *ptr) {
    __builtin_prefetch(ptr, 1, 3);
    return 0;
}
}
back to top