<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p style="margin-top:0; margin-bottom:0"></p>
<div><span style="font-family:Calibri,Helvetica,sans-serif">Hi all,</span></div>
<div><span style="font-family:"Courier New",monospace"><span style="font-family:Calibri,Helvetica,sans-serif">I'm new to LLVM. I'm trying to write a backend for a
</span><span style="font-family:Calibri,Helvetica,sans-serif">custom CPU ABC. I have these errors when I build the project.</span>
<br>
</span></div>
<div><span style="font-family:"Courier New",monospace"><br>
</span></div>
<div><span style="font-family:"Courier New",monospace"><span>ABC</span>GenSubtargetInfo.inc:25:39: error: zero-size array ‘llvm::</span><span style="font-family:"Courier New",monospace">ABC</span><span style="font-family:"Courier New",monospace">SubTypeKV’</span><br>
<span style="font-family:"Courier New",monospace"> extern const llvm::SubtargetFeatureKV ABCSubTypeKV[] = {</span><br>
<span style="font-family:"Courier New",monospace">                                      
</span><br>
<span style="font-family:"Courier New",monospace"><span>ABC</span>GenSubtargetInfo.inc:69:36: error: zero-size array ‘llvm::</span><span style="font-family:"Courier New",monospace">ABC</span><span style="font-family:"Courier New",monospace">ProcSchedKV’</span><br>
<span style="font-family:"Courier New",monospace"> extern const llvm::SubtargetInfoKV A</span><span style="font-family:"Courier New",monospace">B</span><span style="font-family:"Courier New",monospace">C</span><span style="font-family:"Courier New",monospace">ProcSchedKV[]
 = {</span></div>
<div><span style="font-family:"Courier New",monospace"><br>
</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">My understanding is that those arrays are auto-generated from the .td files but I do not know why they are empty.<br>
</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">Any help would be appreciated.</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">Thanks.<br>
</span></div>
<br>
<p></p>
</div>
</body>
</html>