Add LLVMDumpValue() utility routine

This commit is contained in:
Matt Pharr
2012-03-19 11:31:19 -07:00
parent 436c53037e
commit ee437193fb
2 changed files with 37 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright (c) 2010-2011, Intel Corporation
Copyright (c) 2010-2012, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -234,4 +234,9 @@ extern bool LLVMVectorValuesAllEqual(llvm::Value *v, int vectorLength,
void LLVMFlattenInsertChain(llvm::InsertElementInst *ie, int vectorWidth,
llvm::Value **elements);
/** This is a utility routine for debugging that dumps out the given LLVM
value as well as (recursively) all of the other values that it depends
on. */
extern void LLVMDumpValue(llvm::Value *v);
#endif // ISPC_LLVMUTIL_H