lp_bld_printf.h revision 903a14ed9146f3a38895ca7e39f69f2ad77bf5df
11be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania/************************************************************************** 21be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * 31be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * Copyright 2010 VMware, Inc. 41be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * All Rights Reserved. 51be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * 61be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * Permission is hereby granted, free of charge, to any person obtaining a 71be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * copy of this software and associated documentation files (the 81be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * "Software"), to deal in the Software without restriction, including 91be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * without limitation the rights to use, copy, modify, merge, publish, 101be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * distribute, sub license, and/or sell copies of the Software, and to 111be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * permit persons to whom the Software is furnished to do so, subject to 121be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * the following conditions: 131be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * 141be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * The above copyright notice and this permission notice (including the 151be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * next paragraph) shall be included in all copies or substantial portions 161be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * of the Software. 171be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * 181be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 191be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 201be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 211be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR 221be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 231be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 241be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 251be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania * 261be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania **************************************************************************/ 271be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania 281be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania#ifndef LP_BLD_PRINTF_H 291be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania#define LP_BLD_PRINTF_H 301be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania 311be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania 321be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania#include "pipe/p_compiler.h" 331be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania#include "lp_bld.h" 341be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania#include "lp_bld_init.h" 351be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania 361be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania 371be2c9def7187e4e643c00a31dd9986395795d7dNicolas CataniaLLVMValueRef lp_build_const_string_variable(LLVMModuleRef module, 381be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania LLVMContextRef context, 391be2c9def7187e4e643c00a31dd9986395795d7dNicolas Catania const char *str, int len); 40 41LLVMValueRef lp_build_printf(struct gallivm_state *gallivm, 42 const char *fmt, ...); 43 44LLVMValueRef 45lp_build_print_vec4(struct gallivm_state *gallivm, 46 const char *msg, LLVMValueRef vec); 47 48LLVMValueRef 49lp_build_print_ivec4(struct gallivm_state *gallivm, 50 const char *msg, LLVMValueRef vec); 51 52#endif 53 54