<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<font size="+1">I am having difficulty in replicating </font><font
size="+1">a sequence of instructions (2+, with def-use
dependencies within) </font><font size="+1">and inserting them at
a different location.<br>
<br>
I have tried a few different approaches (IRBuilder, new
Instruction(), I->clone(), insertBefore/insertAfter,etc.), all
leading to the same error msg:<br>
<big>"Instruction doesn't dominate all uses"</big><br>
<br>
The DevList has a few previous discussions on this, but not much
of hints I can get from there.<br>
<br>
Could somebody point me a code template or an existing LLVM source
file that does similar things?<br>
<br>
<br>
Thank you very much<br>
<br>
Chuck<br>
<br>
<br>
</font>
</body>
</html>