mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
I cannot find a libgcc function for this builtin. Therefor expanding it to a noop (which is how it use to be treated). If someone who knows the x86 backend better than me could tell me how to get a lock prefix on an instruction, that would be nice to complete x86 support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2459,6 +2459,7 @@ void CWriter::lowerIntrinsics(Function &F) {
|
||||
if (Function *F = CI->getCalledFunction())
|
||||
switch (F->getIntrinsicID()) {
|
||||
case Intrinsic::not_intrinsic:
|
||||
case Intrinsic::memory_barrier:
|
||||
case Intrinsic::vastart:
|
||||
case Intrinsic::vacopy:
|
||||
case Intrinsic::vaend:
|
||||
@ -2544,6 +2545,9 @@ void CWriter::visitCallInst(CallInst &I) {
|
||||
WroteCallee = true;
|
||||
break;
|
||||
}
|
||||
case Intrinsic::memory_barrier:
|
||||
Out << "0; __sync_syncronize()";
|
||||
return;
|
||||
case Intrinsic::vastart:
|
||||
Out << "0; ";
|
||||
|
||||
|
Reference in New Issue
Block a user