lp_bld_conv.h revision b874a7b80729ba3de1b202598e5e82be3754f86f
18988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca/**************************************************************************
28988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca *
38988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * Copyright 2009 VMware, Inc.
48988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * All Rights Reserved.
58988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca *
68988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * Permission is hereby granted, free of charge, to any person obtaining a
78988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * copy of this software and associated documentation files (the
88988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * "Software"), to deal in the Software without restriction, including
98988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * without limitation the rights to use, copy, modify, merge, publish,
108988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * distribute, sub license, and/or sell copies of the Software, and to
118988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * permit persons to whom the Software is furnished to do so, subject to
128988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * the following conditions:
138988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca *
148988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * The above copyright notice and this permission notice (including the
158988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * next paragraph) shall be included in all copies or substantial portions
168988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * of the Software.
178988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca *
188988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
198988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
208988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
218988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
228988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
238988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
248988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
258988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca *
268988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca **************************************************************************/
278988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
288988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca/**
298988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * @file
308988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * Helper functions for type conversions.
318988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca *
328988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca * @author Jose Fonseca <jfonseca@vmware.com>
338988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca */
348988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
358988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
368988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca#ifndef LP_BLD_CONV_H
378988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca#define LP_BLD_CONV_H
388988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
398988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
408988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca#include <llvm-c/Core.h>
418988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
428988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
438988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonsecaunion lp_type type;
448988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
458988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
468988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonsecavoid
478988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonsecalp_build_conv(LLVMBuilderRef builder,
488988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca              union lp_type src_type,
498988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca              union lp_type dst_type,
50b874a7b80729ba3de1b202598e5e82be3754f86fJosé Fonseca              const LLVMValueRef *srcs, unsigned num_srcs,
518988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca              LLVMValueRef *dsts, unsigned num_dsts);
528988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
538988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca
548988424ee8de7948e55279fe622ffdacdb6e5f8aJosé Fonseca#endif /* !LP_BLD_CONV_H */
55