<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Got it Lorenzo, thank you so much!</div>
</div>
<div name="messageReplySection">On Aug 4, 2019, 11:46 AM -0400, Lorenzo Casalino <lorenzo.casalino93@gmail.com>, wrote:<br>
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<br>
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">
Can I get some guidance on what function I should use to insert a .byte/.word in SelectionDAG so it’s printed out in assembly?<br>
</blockquote>
<br>
As far as I know, up to the CodeGen phase, LLVM works on a<br>
target-agnostic representation of the original code; low<br>
level concepts, such as ASM directives, are not handled; thus, it is not<br>
possible to add them in the SelectionDAG or<br>
in the subsequent machine specific representation.<br>
<br>
As pointed out by Tim, you could print them during the code emission<br>
phase [1].<br>
<br>
-- Lorenzo<br>
<br>
-------<br>
<br>
[1]: https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.llvm.org%2Fdocs%2FWritingAnLLVMBackend.html%23assembly-printer&data=02%7C01%7Ckaarthik%40knights.ucf.edu%7C7047cc2b00da42049fdc08d718f2f3c3%7C5b16e18278b3412c919668342689eeb7%7C0%7C1%7C637005304059691315&sdata=rt1K%2FxDYn1A3x%2BR%2FfS5ZY8I71EKKHJHYfPdeprWfADI%3D&reserved=0<br>
<br>
<br>
</blockquote>
</div>
</body>
</html>