search for: newconst

Displaying 2 results from an estimated 2 matches for "newconst".

2012 Apr 12
0
[LLVMdev] detection of constant diagonal matrix * vector
...rightConstVector->getVectorElements(rightConsts); if (leftConsts.size() == numElements && rightConsts.size() == numElements) { SmallVector<Constant*, 8> newShuffleMask(numElements); SmallVector<Constant*, 8> newConst(numElements); int i; bool noShuffle = true; for (i = 0; i < numElements; ++i) { // get shuffle indices int leftIndex = leftMask[i]; int rightIndex = rightMask[i];...
2020 Feb 27
3
How to set DebugLoc when using IRBuilder's CreateCall ?
Hi I want to insert some functions into the llvm bitcode ir files. So I use IRBuilder and CreateCall(). But it how error : inlinable function call in a function with debug info must have a !dbg location. I don't know what DebugLoc should I give the new CallInst to setDebugLoc. I Create this CallInst , so this CallInst doesn't hava so-called "DebugLoc" mapping to the source