[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment
[llvm-core.git] / bindings / go / llvm / IRBindings.h
blob778b0d21bb260cbff448d1ea49e46c08000e8726
1 //===- IRBindings.h - Additional bindings for IR ----------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines additional C bindings for the IR component.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_BINDINGS_GO_LLVM_IRBINDINGS_H
14 #define LLVM_BINDINGS_GO_LLVM_IRBINDINGS_H
16 #include "llvm-c/Core.h"
17 #include "llvm-c/DebugInfo.h"
18 #ifdef __cplusplus
19 #include "llvm/IR/Metadata.h"
20 #include "llvm/Support/CBindingWrapping.h"
21 #endif
23 #include <stdint.h>
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 struct LLVMDebugLocMetadata{
30 unsigned Line;
31 unsigned Col;
32 LLVMMetadataRef Scope;
33 LLVMMetadataRef InlinedAt;
36 LLVMMetadataRef LLVMConstantAsMetadata(LLVMValueRef Val);
38 LLVMMetadataRef LLVMMDString2(LLVMContextRef C, const char *Str, unsigned SLen);
39 LLVMMetadataRef LLVMMDNode2(LLVMContextRef C, LLVMMetadataRef *MDs,
40 unsigned Count);
42 void LLVMAddNamedMetadataOperand2(LLVMModuleRef M, const char *name,
43 LLVMMetadataRef Val);
44 void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD);
46 void LLVMGoSetCurrentDebugLocation(LLVMBuilderRef Bref, unsigned Line,
47 unsigned Col, LLVMMetadataRef Scope,
48 LLVMMetadataRef InlinedAt);
50 struct LLVMDebugLocMetadata LLVMGoGetCurrentDebugLocation(LLVMBuilderRef Bref);
52 #ifdef __cplusplus
55 #endif
57 #endif