summaryrefslogtreecommitdiff
path: root/src/include/jit/llvmjit_emit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/jit/llvmjit_emit.h')
-rw-r--r--src/include/jit/llvmjit_emit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/jit/llvmjit_emit.h b/src/include/jit/llvmjit_emit.h
index 5e74543be47..ead46a64ae2 100644
--- a/src/include/jit/llvmjit_emit.h
+++ b/src/include/jit/llvmjit_emit.h
@@ -86,6 +86,15 @@ l_sizet_const(size_t i)
}
/*
+ * Emit constant oid.
+ */
+static inline LLVMValueRef
+l_oid_const(LLVMContextRef lc, Oid i)
+{
+ return LLVMConstInt(LLVMInt32TypeInContext(lc), i, false);
+}
+
+/*
* Emit constant boolean, as used for storage (e.g. global vars, structs).
*/
static inline LLVMValueRef