================
@@ -522,6 +522,43 @@ let SimpleBDXStore = 1, mayStore = 1 in {
                        [(store GR128:$src, bdxaddr20only128:$dst)]>;
   }
 }
+
+let hasNoSchedulingInfo = 1, hasSideEffects = 1, mayLoad = 1 in {
+  // load the stack guard's address
+  def LOAD_TLS_BLOCK_ADDR : Pseudo<(outs ADDR64:$grdaddr),
+                                            (ins), []>;
+  def LOAD_GLOBAL_STACKGUARD_ADDR : Pseudo<(outs ADDR64:$grdaddr),
+                                               (ins), []>;
+
+  let mayStore = 1 in {
+    // load the stack guard's address
+    // (via LOAD_[TLS|GLOBAL]_STACKGUARD_ADDR),
+    // and move the stack guard to the stack.
+    let usesCustomInserter = 1 in
+      def MOVE_STACKGUARD_DAG : Pseudo<(outs),
+                                        (ins bdaddr12only:$grdloc), []>;
----------------
uweigand wrote:

It's a bit odd to have the asymmetry here that COMPARE_STACKGUARD is matched 
from an ISD node, while MOVE_STACKGUARD is not.  Maybe we should have and use a 
MOVE_STACKGUARD node as well, just for symmetry?

https://github.com/llvm/llvm-project/pull/169317
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to