From 9e493cfcc32aee58e6750ce1efa52d5c3bc3f893 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 3 Mar 2006 02:32:46 +0000 Subject: initial implementation of intrinsic parsing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26495 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/IntrinsicEmitter.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 utils/TableGen/IntrinsicEmitter.h (limited to 'utils/TableGen/IntrinsicEmitter.h') diff --git a/utils/TableGen/IntrinsicEmitter.h b/utils/TableGen/IntrinsicEmitter.h new file mode 100644 index 0000000000..debbe4bbcc --- /dev/null +++ b/utils/TableGen/IntrinsicEmitter.h @@ -0,0 +1,38 @@ +//===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by Chris Lattner and is distributed under +// the University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits information about intrinsic functions. +// +//===----------------------------------------------------------------------===// + +#ifndef INTRINSIC_EMITTER_H +#define INTRINSIC_EMITTER_H + +#include "CodeGenIntrinsics.h" +#include "TableGenBackend.h" + +namespace llvm { + class IntrinsicEmitter : public TableGenBackend { + RecordKeeper &Records; + + public: + IntrinsicEmitter(RecordKeeper &R) : Records(R) {} + + void run(std::ostream &OS); + + void EmitEnumInfo(const std::vector &Ints, + std::ostream &OS); + }; + +} // End llvm namespace + +#endif + + + -- cgit v1.2.3