[llvm] [SandboxIR] Added a new LoadInst::create() with a isVolatile arg (PR #100781)
Julius Alexandre via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 26 10:34:21 PDT 2024
https://github.com/medievalghoul created https://github.com/llvm/llvm-project/pull/100781
wasn't too sure if i was suppose to add the body, just added the function header for now
cc: @vporpo
>From f1444ff7384ea64de197330e36052509f23ad0fa Mon Sep 17 00:00:00 2001
From: medievalghoul <61852278+medievalghoul at users.noreply.github.com>
Date: Fri, 26 Jul 2024 13:26:47 -0400
Subject: [PATCH] created a new LoadInst::create
---
llvm/include/llvm/SandboxIR/SandboxIR.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/llvm/include/llvm/SandboxIR/SandboxIR.h b/llvm/include/llvm/SandboxIR/SandboxIR.h
index 6c04c92e3e70e..bb60916cbb3af 100644
--- a/llvm/include/llvm/SandboxIR/SandboxIR.h
+++ b/llvm/include/llvm/SandboxIR/SandboxIR.h
@@ -743,6 +743,9 @@ class LoadInst final : public Instruction {
static LoadInst *create(Type *Ty, Value *Ptr, MaybeAlign Align,
Instruction *InsertBefore, Context &Ctx,
const Twine &Name = "");
+ static LoadInst *create(Type *Ty, Value *Ptr, MaybeAlign Align,
+ Instruction *InsertBefore, Context &Ctx,
+ const Twine &Name = "", bool isVolatile);
static LoadInst *create(Type *Ty, Value *Ptr, MaybeAlign Align,
BasicBlock *InsertAtEnd, Context &Ctx,
const Twine &Name = "");
More information about the llvm-commits
mailing list