1 //===- IRBindings.h - Additional bindings for IR ----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines additional C bindings for the IR component.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_BINDINGS_GO_LLVM_IRBINDINGS_H
15 #define LLVM_BINDINGS_GO_LLVM_IRBINDINGS_H
17 #include "llvm-c/Core.h"
24 // These functions duplicate the LLVM*FunctionAttr functions in the stable C
25 // API. We cannot use the existing functions because they take 32-bit attribute
26 // values, and the Go bindings expose all of the LLVM attributes, some of which
27 // have values >= 1<<32.
29 void LLVMAddFunctionAttr2(LLVMValueRef Fn, uint64_t PA);
30 uint64_t LLVMGetFunctionAttr2(LLVMValueRef Fn);
31 void LLVMRemoveFunctionAttr2(LLVMValueRef Fn, uint64_t PA);