src/CodeGen_LLVM.cpp
// Get the LLVM linkage corresponding to a Halide linkage type.
Get the LLVM linkage corresponding to a Halide linkage type.
Get the LLVM linkage corresponding to a Halide linkage type .
llvm::GlobalValue::LinkageTypes llvm_linkage(LinkageType t) {
    return llvm::GlobalValue::ExternalLinkage;
    switch (t) {
    case LinkageType::ExternalPlusMetadata:
    case LinkageType::External:
        return llvm::GlobalValue::ExternalLinkage;
    default:
        return llvm::GlobalValue::PrivateLinkage;
    }
}
llvm :: GlobalValue :: LinkageTypes llvm_linkage ( LinkageType t ) { return llvm :: GlobalValue :: ExternalLinkage ; switch ( t ) { case LinkageType :: ExternalPlusMetadata : case LinkageType :: External : return llvm :: GlobalValue :: ExternalLinkage ; default : return llvm :: GlobalValue :: PrivateLinkage ; } }
Get the LLVM linkage corresponding to a Halide linkage type.
Get the LLVM linkage corresponding to a Halide linkage type .
// TODO(dsharlet): For some reason, marking internal functions as // private linkage on OSX is causing some of the static tests to // fail. Figure out why so we can remove this.