<div dir="ltr"><div><div><div><div><div>Hello Everyone ,<br></div><br>Please guide me for the following tasks I wish to accomplish by extending C language<br></div>1. Add a new keyword "Critical" for integer data type.<br></div>2. All the operands in the operations involving such integers will also be marked critical<br></div>3. For such operations mainly addition and multiplication , divide the integers into two halves based on their bits , carry out operations on halves separately and combine the result to obtain the original result.<br></div><div>Eg, <br></div><div><br>critical int a=5;<br></div><div>int b=10;<br></div><div>int c=a+b;<br></div><div>int d=b*b;<br><br></div><div>c should be calculated as follows:<br></div><div>a' and a'' are 16 highest and lowest bits of a respectively. Similarly b' and b'' and c' and c''.<br></div><div>so c''=a''+b'' , c'=a'+b'+carry , c=2^16*c'+c''.<br><br></div><div>and d should be calculated normally.<br></div><div><br></div><div>Please help me figure which files I need to change to accomplish each of the tasks.<br></div><div>Apologies if the tasks are too trivial , I am new to LLVM.<br></div><div><br><br></div><div>Thanks,<br></div><div>Vivek<br></div></div>